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

Prevent attemping a connection when the connection string is invalid

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • No version
    • 1.20.4
    • UI / UX
    • None
    • Tested on OSX
    • 2
    • Not Needed

    Description

      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?

      Attachments

        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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: