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

core_files_get_files, core_files_upload_files ws functions contain context as parameter, which is not correct

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_24_STABLE
    • Story Points:
      20
    • Sprint:
      BACKEND Sprint 3

      Description

      Creating actually two issue here for two different WS, if it is preferred to open two issues just let me know.

      As per comment of Damyon Wiese to MDL-29472, "Context is considered internal to Moodle - and not exposed to webservices. It should not be sent as a parameter or returned in a response"

      FILE: file/externallib.php

      FUNCTION: get_files_parameters()
      PARAMETER: 'contextid' => new external_value(PARAM_INT, 'context id')

      FUNCTION: get_files_returns()
      PARAMETER: 'contextid' => new external_value(PARAM_INT, '')

      FUNCTION: upload_parameters()
      PARAMETER: 'contextid' => new external_value(PARAM_INT, 'context id')

      FUNCTION: upload_returns()
      PARAMETER: 'contextid' => new external_value(PARAM_INT, '')

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: