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

No error is displayed if you scan another URL scheme in credentials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for integration review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.0
    • Fix Version/s: None
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      Official app

      1. In a browser of a desktop device, generate 2 QR codes (you can use this tool):
        1. A URL with a custom URL scheme different than the one in the app (e.g. 'fakescheme://http://moodle.org').
        2. A URL to a certain moodle site: e.g. http://moodle.org
      2. In the app, click to add a new site and click to scan a QR code.
      3. Scan the QR of the point 1.1. Check that the app displays an error saying that the URL isn't meant to be opened in this app.
      4. Scan the QR of the point 1.2. Check that you're sent to credentials.

      Branded app with a fixed site URL

      1. Using a branded app that has a fixed URL set and displays the scan QR button in the credentials page, click to add a site and click the scan QR button.
      2. Scan the code of the point 1.1 of the previous section. Check that the app displays an error saying that the URL isn't meant to be opened in this app.
      3. Now scan the code of the point 1.2 of the previous section. Check that the app displays an error saying that it isn't a valid login URL.
      Show
      This issue only needs to be tested in 1 device. Official app In a browser of a desktop device, generate 2 QR codes (you can use this tool ): A URL with a custom URL scheme different than the one in the app (e.g. 'fakescheme:// http://moodle.org'). A URL to a certain moodle site: e.g.  http://moodle.org In the app, click to add a new site and click to scan a QR code. Scan the QR of the point 1.1. Check that the app displays an error saying that the URL isn't meant to be opened in this app. Scan the QR of the point 1.2. Check that you're sent to credentials. Branded app with a fixed site URL Using a branded app that has a fixed URL set and displays the scan QR button in the credentials page, click to add a site and click the scan QR button. Scan the code of the point 1.1 of the previous section. Check that the app displays an error saying that the URL isn't meant to be opened in this app. Now scan the code of the point 1.2 of the previous section. Check that the app displays an error saying that it isn't a valid login URL.
    • Affected Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.3

      Description

      In a BMA with one siteurl:

      1. Click to scan a QR code.
      2. Scan a code with a URL scheme that doesn't belong to the current app. Check that nothing happens. We should display an error.

      Also, the same scenario in the site screen puts the URL in the input and tries to connect, it doesn't make sense to do that if the URL isn't http(s).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Noel De Martin
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: