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

Course import fails in some conditions

    XMLWordPrintable

Details

    • MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • Hide

      Prerequisites:

      • Moodle in standard configuration.
      • Two courses, C1 and C2, where C1 contains at least one activity or resource.
      • C2 must have at least one role override for the "Manager" role. For example, in C2, click "Settings -> Users -> Permissions", select "Manager", and set "Configure cohort instances" to "Allow".
      • One user, U1, who is assigned the teacher role in both C1 and C2.

      Test case:

      • Log in as U1.
      • Go to course C1 and click "Settings -> Course administration -> Import".
      • Select C2 as the course to import from.
      • Click through the following screens without changing the default settings, until the import is being performed.
      • Expected behaviour: the following message is being displayed.
        "Warning

      The Manager role in the backup file cannot be mapped to any of the roles that you are allowed to assign.

      Import complete. Click continue to return to the course."

      • Click "Continue".
      • Check expected behaviour: Activities/Resources from C2 now appear in C1.
      Show
      Prerequisites: Moodle in standard configuration. Two courses, C1 and C2, where C1 contains at least one activity or resource. C2 must have at least one role override for the "Manager" role. For example, in C2, click "Settings -> Users -> Permissions", select "Manager", and set "Configure cohort instances" to "Allow". One user, U1, who is assigned the teacher role in both C1 and C2. Test case: Log in as U1. Go to course C1 and click "Settings -> Course administration -> Import". Select C2 as the course to import from. Click through the following screens without changing the default settings, until the import is being performed. Expected behaviour: the following message is being displayed. "Warning The Manager role in the backup file cannot be mapped to any of the roles that you are allowed to assign. Import complete. Click continue to return to the course." Click "Continue". Check expected behaviour: Activities/Resources from C2 now appear in C1.

    Description

      If any warnings occur during a course import, then the import fails, although Moodle reports that it has been completed successfully. (An example of a warning would be that the backup file contains references to a role that the present user cannot assign - even if it's not actually necessary to assign it for performing the import.)

      Attachments

        Activity

          People

            bostelm Henning Bostelmann
            grabs Andreas Grabs
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Rossiani Wijaya Rossiani Wijaya
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9/Sep/13