Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3106

Use GET request to get site info to make redirects work

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This issue should be tested both in Android and iOS.

      1. Configure a master site with a redirect. E.g. in my httpd.conf I put this:

        Redirect "/test" "/stable_master"
        

      2. Make sure the authentication is configured to be in the app, not in browser.
      3. In the app, try to add the site using the URL that will be redirected (in my example above, /test). Check that in the credentials screen you see the final URL and you're able to authenticate fine.
      4. Now try to add the site again but using the final URL. Check that you're able to authenticate fine.
      5. Now try to add a 3.1 site without any redirect and with login in the app. Check that you're able to authenticate fine.
      6. Now configure a site that isn't master with a redirect.
      7. In the app, try to access that site. Check that in the credentials screen you see the URL you wrote (not the final URL) and you're not able to authenticate.
      Show
      This issue should be tested both in Android and iOS. Configure a master site with a redirect. E.g. in my httpd.conf I put this: Redirect "/test" "/stable_master" Make sure the authentication is configured to be in the app, not in browser. In the app, try to add the site using the URL that will be redirected (in my example above, /test). Check that in the credentials screen you see the final URL and you're able to authenticate fine. Now try to add the site again but using the final URL. Check that you're able to authenticate fine. Now try to add a 3.1 site without any redirect and with login in the app. Check that you're able to authenticate fine. Now configure a site that isn't master with a redirect. In the app, try to access that site. Check that in the credentials screen you see the URL you wrote (not the final URL) and you're not able to authenticate.
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.7.1

      Description

      Now that MDL-65794 has been integrated we can use GET requests to get the site info, that way redirects should work fine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dpalou Dani Palou
                Reporter:
                dpalou Dani Palou
                Peer reviewer:
                Pau Ferrer
                Integrator:
                Juan Leyva
                Tester:
                Pau Ferrer
                Participants:
                Component watchers:
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  30/Aug/19