-
Bug
-
Resolution: Fixed
-
Major
-
2.7.3, 2.8.1, 2.9
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-48556-master -
-
BACKEND Sprint 19
We have incorrect precedence of && and || operators in automated backups.
In backup/util/helper/backup_cron_helper.class.php we have
} else if (!file_exists($dir) || !is_dir($dir) || !is_writable($dir) && $storage !== 0) {
|
which should be
} else if ((!file_exists($dir) || !is_dir($dir) || !is_writable($dir)) && $storage !== 0) {
|
Since that branch should be executed only if $storage !== 0
This leads to the problem that when backup_auto_storage is set to "course backup filearea" and backup_auto_destination is empty (i.e. the default settings), no backups happen since $storage is set to 0 in this case.
- blocks
-
MDL-48266 Automated backup setting page needs additional validation
- Closed
- is a regression caused by
-
MDL-42717 Ensure automated backup files are deleted when an error occurs because of directory permissions
- Closed
- is duplicated by
-
MDL-48538 Automated Backup not working since last weeks update
- Closed