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

Restoring a backup can lead to multiple guest enrolment instances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1, 3.7.1, 3.8
    • Fix Version/s: STABLE backlog
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      Prepare a backup

      • Create a new course
      • Ensure that the 'guest' enrolment method is present
      • Create a course backup
        • Note You do not need to include user enrolment data

      Test the restore

      • Create a second new course
        • Ensure that the 'guest' enrolment method is not enabled (remove it if it is)
      • Restore your backup
        • Confirm that the guest enrolment method now exists
      • Restore your backup again
        • Confirm that only one instance of the 'guest' enrolment method exists
      • Remove the guest enrolment method
        • Confirm that there are now none
      • Restore your backup again
        • Confirm that the guest enrolment method now exists again
      Show
      Prepare a backup Create a new course Ensure that the 'guest' enrolment method is present Create a course backup Note You do not need to include user enrolment data Test the restore Create a second new course Ensure that the 'guest' enrolment method is not enabled (remove it if it is) Restore your backup Confirm that the guest enrolment method now exists Restore your backup again Confirm that only one instance of the 'guest' enrolment method exists Remove the guest enrolment method Confirm that there are now none Restore your backup again Confirm that the guest enrolment method now exists again
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-31497-master-2

      Description

      It's only possible to create one enrol/guest instance, but a restore doesn't respect this.

      Comments in the code suggest that the enrolment plugin should return null if only one instance of the plugin is allowed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dobedobedoh Andrew Lyons
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated: