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

Favorites saved incorrectly when using SSH tunnel

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.21.0
    • Affects Version/s: 1.20.5
    • Component/s: Favorites
    • None
    • Environment:
      macOS 10.15.3
    • Iteration Avocado, Iteration Blackberry

      When using the blanks to fill in the connection information, SSH tunnel info is not saved properly, and does not display when looking at the favorite. Additionally, the mongo connection port is changed to a seemingly random number over 29000.

      This effectively breaks the Favorites functionality for anyone using SSH Tunnels. I am selecting "Save Changes" before I Connect. I've attached screenshots:

      before-Connect: The favorite's connection. You can see I'm connecting over the standard port.
      before-Tunnel: The tunnel info. I've blacked out username and identity file, but you can see it's connecting over the standard SSH port.
      connect: When I connect to the instance, you can see that the port info has already been munged. The SSH port is showing as 27017 and the instance port as a seemingly random number.
      after-Connect: The favorite now has yet a different instance port that it's trying to connect to.
      after-Tunnel: All SSH tunnel info has been lost.

        1. after-Connect.png
          after-Connect.png
          88 kB
        2. after-Tunnel.png
          after-Tunnel.png
          63 kB
        3. before-Connect.png
          before-Connect.png
          88 kB
        4. before-Tunnel.png
          before-Tunnel.png
          95 kB
        5. connect.png
          connect.png
          39 kB

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            moderndeveloperllc Mark Garrett
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: