Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-9827 Moodle 3.2 QA
  3. MDLQA-10373

Backup and restore activity with files references: Restoring after source files are deleted

    XMLWordPrintable

Details

    • Functional Test
    • Status: Passed
    • Minor
    • Moodle 3.2
    • None
    • Backup
    • None

    Description

      Backup and restore with files references

      Test Pre-requisites:

      1. Login as admin/teacher, make sure at least two courses exist
      2. Enable course legacy files for the first course
      3. Add several files to your private files area, course legacy files and a folder activity, including images
      4. Create an activity module, insert into description images from pre-requisite #3 as alias/shortcuts
      5. Create a new folder resource and add files from pre-requisite #3 as alias/shortcuts

      How to create legacy course files

      • Enable the legacy course files repository plugin in Administration > Site administration > Plugins > Repositories > Common repository settings.
      • Check the legacyfilesinnewcourses box in the Manage repositories common settings (Settings > Site administration > Plugins > Repositories > Common repository settings) then click the 'Save changes' button.
      • Set 'Legacy course files' to Yes in the course settings.
      • In the course that you enabled 'Legacy course files' go to 'Administration > Course administration > Legacy course files' and upload files here.

      How to make sure that file is a reference:

      • if the file is in filearea (i.e. file/folder resource), when you edit the filearea the "shortcut" icon is displayed near the file. When you click on file the information window shows the source location. If the file is embedded image - see below
      • if you edit the filearea that has the source file (user private files or course legacy files), the source file has the "link" icon. When you click on file the information window shows the list of aliases/shortcuts in the system
      • (double check) if you edit the filearea with the source and upload another file with the same name as the source and choose to overwrite, all alias/shortcuts will now show the new file (don't forget to save changes before checking!)

      Test Steps:

      1. Backup the activities and resources created in Pre-requisites #4 and #5 and remove them
      2. Remove sources in private files and course legacy files
      3. Restore activities/resources from backup
      4. Make sure you receive warnings about unreachable sources and you can see the human-readable description of where the source was originally located
      5. Make sure that referencing files are not present any more in fileareas. References to images/video from inside texteditor become broken links

      Attachments

        1. screenshot-1.png
          48 kB
          Luiggi Sansonetti
        2. screenshot-10.png
          4 kB
          Luiggi Sansonetti
        3. screenshot-11.png
          16 kB
          Luiggi Sansonetti
        4. screenshot-12.png
          4 kB
          Luiggi Sansonetti
        5. screenshot-13.png
          6 kB
          Luiggi Sansonetti
        6. screenshot-14.png
          8 kB
          Luiggi Sansonetti
        7. screenshot-15.png
          12 kB
          Luiggi Sansonetti
        8. screenshot-16.png
          40 kB
          Luiggi Sansonetti
        9. screenshot-17.png
          11 kB
          Luiggi Sansonetti
        10. screenshot-18.png
          55 kB
          Luiggi Sansonetti
        11. screenshot-19.png
          61 kB
          Luiggi Sansonetti
        12. screenshot-2.png
          67 kB
          Luiggi Sansonetti
        13. screenshot-20.png
          22 kB
          Luiggi Sansonetti
        14. screenshot-21.png
          34 kB
          Luiggi Sansonetti
        15. screenshot-22.png
          23 kB
          Luiggi Sansonetti
        16. screenshot-23.png
          4 kB
          Luiggi Sansonetti
        17. screenshot-24.png
          4 kB
          Luiggi Sansonetti
        18. screenshot-25.png
          5 kB
          Luiggi Sansonetti
        19. screenshot-26.png
          75 kB
          Luiggi Sansonetti
        20. screenshot-27.png
          7 kB
          Luiggi Sansonetti
        21. screenshot-28.png
          29 kB
          Luiggi Sansonetti
        22. screenshot-29.png
          5 kB
          Luiggi Sansonetti
        23. screenshot-3.png
          31 kB
          Luiggi Sansonetti
        24. screenshot-30.png
          5 kB
          Luiggi Sansonetti
        25. screenshot-31.png
          5 kB
          Luiggi Sansonetti
        26. screenshot-32.png
          17 kB
          Luiggi Sansonetti
        27. screenshot-33.png
          26 kB
          Luiggi Sansonetti
        28. screenshot-34.png
          25 kB
          Luiggi Sansonetti
        29. screenshot-35.png
          12 kB
          Luiggi Sansonetti
        30. screenshot-36.png
          15 kB
          Luiggi Sansonetti
        31. screenshot-37.png
          21 kB
          Luiggi Sansonetti
        32. screenshot-38.png
          50 kB
          Luiggi Sansonetti
        33. screenshot-39.png
          20 kB
          Luiggi Sansonetti
        34. screenshot-4.png
          32 kB
          Luiggi Sansonetti
        35. screenshot-40.png
          54 kB
          Luiggi Sansonetti
        36. screenshot-41.png
          25 kB
          Luiggi Sansonetti
        37. screenshot-42.png
          18 kB
          Luiggi Sansonetti
        38. screenshot-43.png
          8 kB
          Luiggi Sansonetti
        39. screenshot-5.png
          32 kB
          Luiggi Sansonetti
        40. screenshot-6.png
          28 kB
          Luiggi Sansonetti
        41. screenshot-7.png
          15 kB
          Luiggi Sansonetti
        42. screenshot-8.png
          108 kB
          Luiggi Sansonetti
        43. screenshot-9.png
          42 kB
          Luiggi Sansonetti

        Activity

          People

            lsansone Luiggi Sansonetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: