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

If the SSH Identity File is present but empty, Compass does nothing when the CONNECT button is clicked

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.31.0
    • Affects Version/s: 1.12.6
    • Component/s: Connectivity
    • None
    • 2
    • Not Needed

      If the Compass user selects SSH tunneling and specifies an identity file with no content, there is no error message displayed when the user clicks the CONNECT button.

      $ ls -alt .ssh/id_rsa
      -rw------- 1 brian staff 0 Apr 20 10:34 .ssh/id_rsa
      

      There is an error thrown in the DevTools Console:

      /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/ssh2-streams/lib/keyParser.js:42 Uncaught TypeError: Cannot read property 'length' of undefined
          at module.exports (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/ssh2-streams/lib/keyParser.js:42:18)
          at Client.connect (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/ssh2/lib/client.js:228:23)
          at SSHTunnel.createTunnel (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/lib/ssh-tunnel.js:53:4)
          at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:3866:24
          at replenish (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:998:17)
          at /Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:1002:9
          at eachOfLimit (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:1027:24)
          at _parallel (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:3865:5)
          at Object.series (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/node_modules/async/dist/async.js:4721:5)
          at SSHTunnel.listen (/Applications/MongoDB Compass.app/Contents/Resources/app.asar/node_modules/mongodb-connection-model/lib/ssh-tunnel.js:138:9)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            brian.blevins@mongodb.com Brian Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: