-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.6, 2.5.2, 2.6
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
MDL-41660-imscc-tempdir -
The imscc backup doesn't respect the $CFG->tempdir setting.
To reproduce:
Set $CFG->tempdir to something other than the default location and backup a course using IMS CC format. The conversion stage of the backup will use the default temp directory ("$CFG->dataroot/temp"), and not the configured $CFG->tempdir.
If the $CFG->tempdir is on a different filesystem than the moodle data root, then the backup will actually fail with error "error/failed_move_converted_into_place". This is due to rename() not working across filesystem boundaries.