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

Allow backup and restore on the front page

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Test 1

      • All unit tests and behat tests should pass (ask integators)

      Test 2

      • Enable automated backups (https://docs.moodle.org/28/en/Automated_course_backup) and ensure it works as expected
      • Perform a CLI backup of the front page saving the file in your computer
      • It SHOULD store the file
      • Upload the file to the front page and select it
      • Try to restore it in another course (not the front page)
      • You SHOULD receive an error before performing the restore
      • Try to restore it in the front page selecting in the existing course adding the new contents
      • It SHOULD be correctly restored
      • Change the front page contents
        • Blocks
        • Activities
        • Section name
      • Restore the front page backup selecting the existing course and deleting previous contents
      • It SHOULD be correctly restored
        • Ensure that the previous contents are restored and what you changed remains as it was when you created the backup
      • Go to the front page and select 'Backup' link, continue with the backup
      • All SHOULD finish as expected and the backup SHOULD be listed when you press the 'Restore' link
      Show
      Test 1 All unit tests and behat tests should pass (ask integators) Test 2 Enable automated backups ( https://docs.moodle.org/28/en/Automated_course_backup ) and ensure it works as expected Perform a CLI backup of the front page saving the file in your computer It SHOULD store the file Upload the file to the front page and select it Try to restore it in another course (not the front page) You SHOULD receive an error before performing the restore Try to restore it in the front page selecting in the existing course adding the new contents It SHOULD be correctly restored Change the front page contents Blocks Activities Section name Restore the front page backup selecting the existing course and deleting previous contents It SHOULD be correctly restored Ensure that the previous contents are restored and what you changed remains as it was when you created the backup Go to the front page and select 'Backup' link, continue with the backup All SHOULD finish as expected and the backup SHOULD be listed when you press the 'Restore' link
    • Workaround:
      Hide

      None

      Show
      None
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_24_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-31500_master
    • Sprint:
      BACKEND Sprint 18

      Description

      Total of 3 errors associated with restoring a Front Page Backup:
      1) Attempting to restore a front page backup (from a 2.1 install) fails with message 'Restoring over front page is not allowed'
      2) The backup file which was uploaded does not stay in the Course Backup Area (related to MDL-30808 ?)
      3) Choosing Settings -> Site Administration : Front page : Front page restore (URL /files/index.php?id=1&wdir=%2Fbackupdata) generates Internal Server Error

      This means that you cannot set up a site with a front page on a local sandbox machine and then port it onto a production site.
      Moodle 2.2.1+ (Build: 20120112)

      Replication steps:
      Switch on debugging with with Advanced features -> Development -> Debugging : Debug messages : ALL
      1) Choose Settings : Front page settings : Restore
      2) Upload mbz backup file
      3) On Screen 3 of the restore process, choose Restore into this course : Merge the backup course into this course (default)
      Restore settings good
      4) Schema : Overwrite course configuration : yes. All components checked (Section 0, section 1) and User data checked as well.
      5) Review -> [Perform restore]
      Message Restoring over front page is not allowed. No debugging messages

      More details at http://moodle.tiddlyspace.com/#%5b%5bM2.2%20front%20page%20backup%20%232%5d%5d

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  31 Vote for this issue
                  Watchers:
                  28 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/May/15