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

Improve error message displayed when the site has a redirect

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 3.6.0
    • Component/s: Log in screen
    • Labels:
    • Testing Instructions:
      Hide
      1. Install the app in an Android 7+ and an iOS 10+ device (please test the issues in both devices).
      2. Try to add the site number 1 in my comment (comment is restricted). Check that you arrive to the credentials screen. Check that in iOS the URL written in the page has http protocol (not https). Check that in Android the URL has https (Android detects the certificate as valid, iOS doesn't). 
      3. In Android, enter a username and password (whatever you want). Check that you see a warning saying that the site has a redirect.
      4. Try to add the site number 2 in my comment. Check that you see an error "Cannot connect: ...".
      5. Try to add the site number 3 in my comment. In the credentials screen, enter a username and password (whatever you want). Check that you see a warning saying that the site has a redirect.
      6. Now install the app in an Android 4.4 (I'm not sure which version starts supporting fetch, but in emulator Android 4.4 doesn't support it).
      7. Repeat step 5 and check that you see an error in Hebrew.
      Show
      Install the app in an Android 7+ and an iOS 10+ device (please test the issues in both devices). Try to add the site number 1 in my comment (comment is restricted). Check that you arrive to the credentials screen. Check that in iOS the URL written in the page has http protocol (not https). Check that in Android the URL has https (Android detects the certificate as valid, iOS doesn't).  In Android, enter a username and password (whatever you want). Check that you see a warning saying that the site has a redirect. Try to add the site number 2 in my comment. Check that you see an error "Cannot connect: ...". Try to add the site number 3 in my comment. In the credentials screen, enter a username and password (whatever you want). Check that you see a warning saying that the site has a redirect. Now install the app in an Android 4.4 (I'm not sure which version starts supporting fetch, but in emulator Android 4.4 doesn't support it). Repeat step 5 and check that you see an error in Hebrew.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Sprint:
      Moodle Mobile 3.6.0

      Description

      The Mobile app right now does not support redirections and we weren't able to detect them.
      The new fetch API seems to be able to detect redirections, we should explore how to use it in order to support redirections: https://developer.mozilla.org/en-US/docs/Web/API/Response/redirected

      Example: https://mymoodle.university.com -> redirection -> https://university.com/moodle/

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Albert Gasset
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/19