Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16122 Moodle 4.0 QA
  3. MDLQA-16489

CLONE - Mobile service is enabled by default on secure server

XMLWordPrintable

      NOTE: You need a moodle site with https

      1. Install clean moodle site under domian using https
      2. Check that during the installation you don’t see any warnings
      3. Once the site is installed, you need to check that:
        • The setting enablemobilewebservice is enabled in Site administration > General > Advanced features (enablemobilewebservice)
        • The Moodle mobile web service is enabled in Site administration > Server > Web services > External services
        • Rest protocol is enabled in Site administration > Server > Web services > Manage protocols
        • For the authenticated user, the capabilities: webservice/rest:use and moodle/webservice:createmobiletoken are enabled at system level
      4. Disable the Mobile service (enablemobilewebservice) in Site administration > Mobile app > Mobile settings
      5. Bump moodle version (version.php) number to simulate an upgrade and go to Admin > Notifications to do the upgrade
      6. Confirm that the setting enablemobilewebservice is still disabled
      7. Now, do another clean installation under https but this time using the CLI:

        sudo -u www-data php admin/cli/install.php --lang=en --wwwroot=https://localhost/m/stable_master --dataroot=/Users/xyz/wwwdata/moodledatatest1 --dbtype="postgres" --dbhost="localhost" --dbuser="dbuser1" --dbname=test1 --dbpass=xyz --fullname=t --shortname=t --adminpass="yourPass!" --adminemail="yourmail@moodle.com" --non-interactive --allow-unstable --agree-license

      1. Confirm steps 3, 4, 5, and 6 (doing the upgrade using the cli)

        1. MDLQA-16489 - Step 1 - web clean installation.png
          117 kB
          Carlos Escobedo
        2. MDLQA-16489 - Step 2 - web clean installation.png
          130 kB
          Carlos Escobedo
        3. MDLQA-16489 - Step 3 - creatmobiletoken cap.png
          93 kB
          Carlos Escobedo
        4. MDLQA-16489 - Step 3 - enable mobile webservice.png
          79 kB
          Carlos Escobedo
        5. MDLQA-16489 - Step 3 - rest protocol.png
          113 kB
          Carlos Escobedo
        6. MDLQA-16489 - Step 3 - rest use cap.png
          88 kB
          Carlos Escobedo
        7. MDLQA-16489 - Step 3 - web service.png
          87 kB
          Carlos Escobedo
        8. MDLQA-16489 - Step 5 - bump version.png
          122 kB
          Carlos Escobedo
        9. MDLQA-16489 - Step 5 - upgrade version.png
          35 kB
          Carlos Escobedo
        10. MDLQA-16489 - Step 6 - enablemobilewebservice disabled.png
          110 kB
          Carlos Escobedo
        11. MDLQA-16489 - Step 6 - keep enablemobilewebservice disabled.png
          80 kB
          Carlos Escobedo
        12. MDLQA-16489 - Step Cli 1 - cli install.png
          18 kB
          Carlos Escobedo
        13. MDLQA-16489 - Step Cli 1 - cli install completed.png
          44 kB
          Carlos Escobedo
        14. MDLQA-16489 - Step Cli 3 - createmobiletoken cap.png
          80 kB
          Carlos Escobedo
        15. MDLQA-16489 - Step Cli 3 - enablemobilewebservice .png
          143 kB
          Carlos Escobedo
        16. MDLQA-16489 - Step Cli 3 - external webservice.png
          73 kB
          Carlos Escobedo
        17. MDLQA-16489 - Step Cli 3 - rest protocol.png
          78 kB
          Carlos Escobedo
        18. MDLQA-16489 - Step Cli 3 - rest use cap.png
          76 kB
          Carlos Escobedo
        19. MDLQA-16489 - Step Cli 5 - bump version.png
          52 kB
          Carlos Escobedo
        20. MDLQA-16489 - Step Cli 5 - upgraded.png
          63 kB
          Carlos Escobedo
        21. MDLQA-16489 - Step Cli 6 - enablemobilewebservice disabled.png
          136 kB
          Carlos Escobedo

            cescobedo Carlos Escobedo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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