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

Incorrect param type for tool_mobile/forcedurlscheme setting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.7.5, 3.8.2
    • 3.7.4, 3.8.1
    • Other
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-67767-master
    • Hide

      Test saving the setting

      1. Log in as admin.
      2. Go to Site administration > Mobile app > Mobile authentication.
      3. In the field forcedurlscheme, enter the value "mmlearn-moodle" and save changes. Check that no error is displayed and the value is stored.

      Test launch.php

      1. Log in as admin.
      2. Go to "Site administration > Mobile app > Mobile settings" and enable "web services for mobile devices".
      3. Go to "Site administration > Mobile app > Mobile authentication" and set "Type of login" to "Via a browser window (for SSO plugins)".
      4. Log out.
      5. Now open the following URL in a new tab. Please notice you need to replace the SITEURL with your site URL:

        http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=my-0scheme.a%2Bb

      6. Check that you're redirected to the login screen.
      7. Now open the following URL. Please notice you need to replace the SITEURL with your site URL:

        http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=0scheme

      8. Check that you see an error saying: Invalid parameter: the value of urlscheme isn't valid...
      9. Now open the following URL. Please notice you need to replace the SITEURL with your site URL:

        http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=my_scheme

      10. Check that you see an error saying: Invalid parameter: the value of urlscheme isn't valid...
      Show
      Test saving the setting Log in as admin. Go to Site administration > Mobile app > Mobile authentication. In the field  forcedurlscheme , enter the value "mmlearn-moodle" and save changes. Check that no error is displayed and the value is stored. Test launch.php Log in as admin. Go to "Site administration > Mobile app > Mobile settings" and enable "web services for mobile devices". Go to "Site administration > Mobile app > Mobile authentication" and set "Type of login" to "Via a browser window (for SSO plugins)". Log out. Now open the following URL in a new tab. Please notice you need to replace the SITEURL with your site URL: http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=my-0scheme.a%2Bb Check that you're redirected to the login screen. Now open the following URL. Please notice you need to replace the SITEURL with your site URL: http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=0scheme Check that you see an error saying: Invalid parameter: the value of urlscheme isn't valid... Now open the following URL. Please notice you need to replace the SITEURL with your site URL: http://SITEURL/admin/tool/mobile/launch.php?service=moodle_mobile_app&passport=a&urlscheme=my_scheme Check that you see an error saying: Invalid parameter: the value of urlscheme isn't valid...

      According rfc2396 custom URL schemes should start with a letter (upper or lower case), and can contain letters (upper and/or lower case), numbers, and the following characters: "+", "-" and "."

      Right now, we are forcing PARAM_ALPHANUM for the setting so schemes like: mmlearn-moodle are not properly working.
       

            dpalou Dani Palou
            jleyva Juan Leyva
            Juan Leyva Juan Leyva
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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