Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-61871

Files with name length > 90 are breaking Web Services

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • 3.4.2
    • Web Services
    • 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.

            Unassigned Unassigned
            jleyva Juan Leyva
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.