Compass never connects if you put an incorrect connection string first

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.49.13
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • None
    • Developer Tools

      Related to https://jira.mongodb.org/browse/HELP-97415{}

      Description

      Compass version 1.49.12 never connects if you put an incorrect connection string first.

      Steps to Reproduce

      1. Get a valid connection string and copy it into the buffer
      2. Create a new connection in Compass
      3. Paste the valid connection string, but add an http:// prefix
      4. Click Save & Connect — Compass will display the error “Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
      5. Edit the connection string
      6. Paste the correct connection string into the modal
      7. Click Save & Connect — Compass will display the same error “Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
      8. Only restarting helped in my case. After Compass restarted, the same connection started working fine

      Expected Results

      Compass works with the correct connection string after the incorrect connection string was edited into a correct one

      Actual Results

      Compass version 1.49.12 never connects if you put an incorrect connection string first.

            Assignee:
            Paula Stachova
            Reporter:
            Eduarda Scharnhorst
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: