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

    • MOODLE_24_STABLE
    • 20
    • BACKEND Sprint 3

      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, '')

        There are no Sub-Tasks for this issue.

            moodle.com Moodle HQ
            andreabix Andrea Bicciolo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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