Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30456

Backup missing deleted users information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: Backup
    • Labels:

      Description

      Regression of MDL-29602, while testing MDL-30192, this was discovered.

      Before 2.2, accesslib->get_context_instance() always returned one context for any user. Since some 2.2, deleted users don't get any context instance anymore.

      This was causing, in backup, to miss some user's information completely, leading to errors both in restore and also after restore, trying to access to information about those users.

      So this is about to fix backup 2.2 so it will continue including deleted users as was done before.

      Once implemented, the tests @ MDL-30192 for 2.2 should be enough to test that this is working.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Jason Fowler
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/11