Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-268

Allow to avoid typing http / https when connecting to a Nuxeo server

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: iOS 1.5, Android 1.2
    • Component/s: Android, iOS

      Description

      Add a utility method that computes all URLs we want to try after the user has entered a server URL:

      • add http / https before if not present
      • append /nuxeo at the end of the URL

      For example, typing demo.nuxeo.com, we should end up with the following list of URLs:

      Typing https://demo.nuxeo.com should result of:

      To check a URL, do a fetch request with the following parameters to avoid any redirect:

      { method: 'HEAD', redirect: 'manual'}
      

      To do for both acquire_token.jsp and basic authentication.

      An optimization could be to check the redirect location of the response to use it as next URL to test.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: