Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.10, 2.2.7, 2.3.4, 2.4.1
    • Fix Version/s: 2.2.8, 2.3.5, 2.4.2
    • Component/s: Backup, Course
    • Labels:
    • Testing Instructions:
      Hide

      Testing difficulty: Easy, requires Moodle 1.9 available

      1. Create a new course at Moodle 1.9 site
      2. Edit Course files in the course. Create some folders, sub-folders and sub-sub-folders. Upload couple of files into various folders there (including the root)
      3. In the course, create at least two Resources of the type "Display a directory". In one of them, choose "Main files directory" as the displayed folder. In the other one, choose some folder or sub-folder to be displayed.
      4. Backup the course (no need to backup user data not roles assignments but it should not matter).
      5. Restore the course at patched Moodle 2.x
      6. TEST: Make sure the restore works well and all Resources are converted into the Folder modules with files (FYI the expected behaviour is that each Folder module creates its own copy of the original file in the Course files).
      Show
      Testing difficulty: Easy, requires Moodle 1.9 available Create a new course at Moodle 1.9 site Edit Course files in the course. Create some folders, sub-folders and sub-sub-folders. Upload couple of files into various folders there (including the root) In the course, create at least two Resources of the type "Display a directory". In one of them, choose "Main files directory" as the displayed folder. In the other one, choose some folder or sub-folder to be displayed. Backup the course (no need to backup user data not roles assignments but it should not matter). Restore the course at patched Moodle 2.x TEST: Make sure the restore works well and all Resources are converted into the Folder modules with files (FYI the expected behaviour is that each Folder module creates its own copy of the original file in the Course files).
    • Workaround:
      Hide

      Dance lambada for a while to see if it helps.

      Show
      Dance lambada for a while to see if it helps.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-37774-folder-conversion

      Description

      One of our faculty has a course with a link to "Course Documents" in our 1.9 system. When they backup the course and attempt to restore to 2.x, they are given an error "error/moodle/file invalid path", with debug on, I can see that it having trouble with paths, as it has // in the path name for the debug error.

      It took me a while to find this, but, turning off this particular element in the backup allows for the restore to work.

      To test:
      In moodle 1.9 or prior, add a resource "Display a directory". Point to a directory in your course with files; in my case "Main files directory".

      Backup your course in 1.9
      Restore the course in 2.x

      Receive error message.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Mar/13