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

Do not enable the XMLRPC server and capabilities when the Mobile service is enabled

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: Web Services
    • Labels:
    • Testing Instructions:
      Hide
      • You must use a clean Moodle installation
      1. Go to Plugins - Web Services - Mobile and enable "web services for mobile devices"
      2. Go to /admin/settings.php?section=webserviceprotocols and confirm that only the REST protocol is enabled
      3. Go to /admin/settings.php?section=externalservices and confirm that the "Moodle mobile web service" is enabled
      4. Go to /admin/roles/define.php?action=edit&roleid=7 and confirm that for the Authenticated user role the webservice/rest:use is allowed
      5. Now go again to Plugins - Web Services - Mobile and disable the Mobile services
      6. Check in /admin/settings.php?section=webserviceprotocols that the REST protocol is disabled
      7. Check in /admin/settings.php?section=externalservices that the "Moodle mobile web service" is disabled
      8. Check in /admin/roles/define.php?action=edit&roleid=7 that the webservice/rest:use capability is NOT allowed
      Show
      You must use a clean Moodle installation Go to Plugins - Web Services - Mobile and enable "web services for mobile devices" Go to /admin/settings.php?section=webserviceprotocols and confirm that only the REST protocol is enabled Go to /admin/settings.php?section=externalservices and confirm that the "Moodle mobile web service" is enabled Go to /admin/roles/define.php?action=edit&roleid=7 and confirm that for the Authenticated user role the webservice/rest:use is allowed Now go again to Plugins - Web Services - Mobile and disable the Mobile services Check in /admin/settings.php?section=webserviceprotocols that the REST protocol is disabled Check in /admin/settings.php?section=externalservices that the "Moodle mobile web service" is disabled Check in /admin/roles/define.php?action=edit&roleid=7 that the webservice/rest:use capability is NOT allowed
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-52491-master

      Description

      When the Mobile service is enabled via Plugins > Web Services > Mobile, not only the REST server and the REST capabilities (webservice/rest:use) are enabled, the XMLRPC ones are too.

      This is because the old app "My Moodle" (native, only for iOs) used XMLRPC.
      "My Moodle" was unpublished from the store several months ago, I don't see any practical reason for enabling the XMLRPC server anymore.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16