-
Bug
-
Resolution: Fixed
-
Major
-
3.5.3, 3.6
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
master-
MDL-64290-imscc-restore-temp-dir -
Easy
-
If a Moodle site has set $CFG->tempdir set to something other than the default location, restoring an imscc file fails with error "The selected file is not a valid Moodle backup file and can't be restored." This is because in backup/converter/imscc1/lib.php and backup/converter/imscc11/lib.php the path is hard coded to
$CFG->dataroot . '/temp/backup/' . $tempdir;
Steps to reproduce:
- Set Set $CFG->tempdir to something other than the default location, such as, /moodletemp/
- Create an imscc backup on the Moodle site or upload an already created one.
- Attempt to restore the imscc file.
I will create fix on a branch in github.