Moodle
  1. Moodle
  2. MDL-30808

Front Page Restore does not show available backups

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      1. Login as Admin and click Site Administration > Front Page > Front Page backup
      2. Complete the steps to create a backup of the Front Page
      3. Verify that the new backup page is listed
      4. Click Site Administration > Front Page > Front Page restore
      5. Verify that list of available backup files is shown.

      Show
      1. Login as Admin and click Site Administration > Front Page > Front Page backup 2. Complete the steps to create a backup of the Front Page 3. Verify that the new backup page is listed 4. Click Site Administration > Front Page > Front Page restore 5. Verify that list of available backup files is shown.
    • Workaround:
      Hide

      Copy-paste the address [SERVER]/backup/restorefile.php?contextid=2 into the browser address bar.

      Show
      Copy-paste the address [SERVER] /backup/restorefile.php?contextid=2 into the browser address bar.
    • Affected Branches:
      MOODLE_21_STABLE
    • Rank:
      33749

      Description

      Site Administration > Front Page > Front Page restore reports "no files available" even when backups have been created.

      Completing a Front Page backup takes the user to a list of available backups at /backup/restorefile.php?contextid=2, and from here the Front Page can be restored. However, the actual link to "Front Page restore" points to /files/index.php?id=1&wdir=%2Fbackupdata, which always reports "no files available".

      Steps to reproduce
      ==============
      1. Login as Admin and click Site Administration > Front Page > Front Page backup
      2. Complete the steps to create a backup of the Front Page
      3. Verify that the new backup page is listed
      4. Click Site Administration > Front Page > Front Page restore

      Expected result
      ===========
      I would expect to see a list of backups of the Front Page, from which I could choose one to restore.

      Actual result
      =========
      Message "No files available" appears.

        Issue Links

          Activity

          Hide
          Michael de Raadt added a comment -

          Thanks for reporting that.

          Show
          Michael de Raadt added a comment - Thanks for reporting that.
          Hide
          Michael de Raadt added a comment -

          I'm bumping this issue. It is related to another high priority issue.

          Show
          Michael de Raadt added a comment - I'm bumping this issue. It is related to another high priority issue.
          Hide
          Michael de Raadt added a comment -

          I tested this in 2.3 and the current Master (2.5) and this issue appears to be resolved. The "Front page" restore seems to link to the correct page now.

          Show
          Michael de Raadt added a comment - I tested this in 2.3 and the current Master (2.5) and this issue appears to be resolved. The "Front page" restore seems to link to the correct page now.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: