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

Improve error message displayed when the site has a redirect

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.6.0
    • 3.5.1
    • Log in screen
    • 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.
    • MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • Moodle Mobile 3.6.0

      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/

            dpalou Dani Palou
            jleyva Juan Leyva
            Albert Gasset Albert Gasset
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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