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

Enable the Mobile service by default in Moodle 3.0

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. First of all, you need to configure your local web server to allow sites under https
      2. Perform a manual clean install of Moodle under a domain using https
      3. Check that during the installation you don’t see any warnings
      4. Once the site is installed, you need to check that:
        • The setting enablemobilewebservice is enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Mobile
        • The Moodle mobile web service is enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ External services
        • Rest and XML-RPC protocols are enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Manage protocols
        • For the authenticated user, the capabilities: webservice/rest:use webservice/xmlrpc:use and moodle/webservice:createmobiletoken are enabled at system level
      5. Disable the Mobile service (enablemobilewebservice) in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Mobile
      6. Bump de moodle version.php number to simulate an upgrade and go to Admin ▶︎ Notifications to do the upgrade
      7. Confirm that the setting enablemobilewebservice is still disabled
      8. Now, do another clean installation under https but this time using the CLI:

        sudo -u httpd php54 admin/cli/install.php --lang=en --wwwroot=http://localhost/m/stable_master --dataroot=/Users/xyz/wwwdata/moodledatatest1 --dbname=test1 --dbpass=xyz --fullname=t --shortname=t --adminpass=yourPass! --adminemail=“yourmail@moodle.com" --non-interactive --allow-unstable --agree-license

      9. Confirm steps 4, 5, 6 y 7 (doing the upgrade using the cli)
      Show
      First of all, you need to configure your local web server to allow sites under https Perform a manual clean install of Moodle under a domain using https Check that during the installation you don’t see any warnings Once the site is installed, you need to check that: The setting enablemobilewebservice is enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Mobile The Moodle mobile web service is enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ External services Rest and XML-RPC protocols are enabled in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Manage protocols For the authenticated user, the capabilities: webservice/rest:use webservice/xmlrpc:use and moodle/webservice:createmobiletoken are enabled at system level Disable the Mobile service (enablemobilewebservice) in Site administration ▶︎ Plugins ▶︎ Web services ▶︎ Mobile Bump de moodle version.php number to simulate an upgrade and go to Admin ▶︎ Notifications to do the upgrade Confirm that the setting enablemobilewebservice is still disabled Now, do another clean installation under https but this time using the CLI: sudo -u httpd php54 admin/cli/install.php --lang=en --wwwroot= http://localhost/m/stable_master --dataroot=/Users/xyz/wwwdata/moodledatatest1 --dbname=test1 --dbpass=xyz --fullname=t --shortname=t --adminpass=yourPass! --adminemail=“yourmail@moodle.com" --non-interactive --allow-unstable --agree-license Confirm steps 4, 5, 6 y 7 (doing the upgrade using the cli)
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-51478-master

      Description

      This was discussed in the Mobile chat group, Martin suggested to enable the mobile service by default in 3.0. I think we should enable it but only for sites using https (since the tokens authentication mechanism is not very secure).

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  16/Nov/15