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

Error when restoring role assignments / overrides

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When one course with role assignments or role overrides in any module / block / user is restored, if the module / block / user has been skipped for any reason, later the process throws some ugly DB errors.

      It's caused because restore of module / block / user role assignments and overrides tries to locate non-existing contexts and never validates they exist.

      We need to check target module / block / user instances have been restored before allowing any role assignment / override to be attached to them.

      Ciao

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Tim Hunt
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09