Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4085

Prevent attemping a connection when the connection string is invalid

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.20.4
    • Component/s: UI / UX
    • None
    • Environment:
      Tested on OSX
    • 2
    • Not Needed

      The connect button is enabled even when the connection string is invalid or blank.

      Attempting connection with a blank connection string results in a timeout.
      Attempting connection with an totally invalid connection string hangs indefinitely.
      Attempting connection with a partially invalid connection string results in a timeout.

      It is quite common for users to get the connection string from the Atlas console (with placeholders for user/password,  paste it into Compass and immediately click connect without changing the placeholders.

      mongodb+srv://<username>:<password>@paymentsatlasdevelopment-hegpc.mongodb.net/test

      Suggest we disable the connect button unless the connection string is valid?

        1. empty-connection-string.png
          empty-connection-string.png
          43 kB
        2. invalid-connection-string.png
          invalid-connection-string.png
          47 kB
        3. partially-invalid-connection-string.png
          partially-invalid-connection-string.png
          54 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            mark.baker-munton@mongodb.com Mark Baker-Munton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: