-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
3.4.2
-
MOODLE_34_STABLE
Hi,
the changes in MDL-60398 are breaking the mobile app and Web Services in general.
Web Services returning files whose name length is > 90 are returning this exception:
"items => Invalid response value detected: itemfiles => Invalid response value detected: filename => Invalid response value detected: Invalid external api response: the value is "Abeja (Bombus terrestris) en un Ptilotus exaltatus, jardín botánico de Tallin, Estonia, 2012-08-12, DD 01.JPG", the server was expecting "file" type"
The reason is that the information to be returned by a Web Service call is passed through validate_param that check if the cleaned parameter is equal to the original and the changes in MDL-60398 are shortening the original file name.