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

Recent changes in MDL-76583 (lib/externallib.php) to use namespaced classes have broken some WS used by the mobile app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2
    • 4.2
    • Web Services
    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • MDL-76987-master
    • Hide
      1. Login as admin
      2. Navigate to Site admin -> Server -> Web services -> Overview
      3. Enable web services
      4. Enable the REST protocol
      5. Create a token for a user (any user)
      6. Copy the token
      7. Call the REST API

        curl 'https://YOUR_SITE/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_webservice_get_site_info' \
          --data-raw 'moodlewssettingfilter=true&moodlewssettingfileurl=true&moodlewssettinglang=en_us&wsfunction=core_webservice_get_site_info&wstoken=YOUR_TOKEN' \
          --compressed | python -m json.tool
        

      Show
      Login as admin Navigate to Site admin -> Server -> Web services -> Overview Enable web services Enable the REST protocol Create a token for a user (any user) Copy the token Call the REST API curl 'https://YOUR_SITE/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_webservice_get_site_info' \   --data-raw 'moodlewssettingfilter=true&moodlewssettingfileurl=true&moodlewssettinglang=en_us&wsfunction=core_webservice_get_site_info&wstoken=YOUR_TOKEN' \   --compressed | python -m json.tool

      We just noticed today that the recently integrated changes from MDL-76583 have broken access with the mobile app to sites using the latest integration branch.

      We are getting this error:

      Class 'external_api' not found

      Sample curl request:
      curl 'https://YOUR_SITE/webservice/rest/server.php?moodlewsrestformat=json&wsfunction=core_webservice_get_site_info' \
        --data-raw 'moodlewssettingfilter=true&moodlewssettingfileurl=true&moodlewssettinglang=en_us&wsfunction=core_webservice_get_site_info&wstoken=YOUR_TOKEN' \
        --compressed

            dobedobedoh Andrew Lyons
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 28 minutes
                1h 28m

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