-
Sub-task
-
Resolution: Fixed
-
Critical
-
2.2.3
-
MOODLE_22_STABLE
-
MOODLE_22_STABLE
-
This has been previously reported in MDL-32851 and incorrectly marked as "not a bug". The issue is quite simple:
during upgrade of resources, the value from mdl_resource_old.reference is copied into mdl_resource.mainfile but with additional character - "/" (slash) at the beginning. Both fields are varchar(255) so if mdl_resource_old.reference has length of 255, the total length of the string for mdl_resource.mainfile will be 256 - hence the error.
During an upgrade to the latest version the field mdl_resource.mainfile is dropped - so you won't see it in that table once upgrade is successfully finished.
- duplicates
-
MDL-32851 Moodle 1.9 -> 2.2 upgrade Data too long for column 'mainfile' error in mod_resource
-
- Closed
-