-
Bug
-
Resolution: Fixed
-
Major
-
2.9.9, 3.0.6, 3.0.7, 3.1.2, 3.1.3, 3.2, 3.3.3, 3.4
-
MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-57569-master -
Easy
-
When you create a badge and upload an image the image is processed and stored in three different sizes named f1, f2 and f3 for later use. However, the largest size, f3, is never accessible and if you ever try to get that version a file not found exception occurs.
After much debugging I finally tracked it down to this code in filelib.php...
if ($filearea === 'badgeimage') {
if ($filename !== 'f1' && $filename !== 'f2')
Basically, only access to the small images are being processed here and anything else causes that file not found exception. Probably, someone forgot to add the f3 option in that line. Either the 'f3' option needs to be permitted here, or that entire if just needs to be removed.
- has been marked as being related by
-
MDL-58000 Larger badge images need to be used
-
- Closed
-