MongoDB Compass "Open MongoDB Shell" connects to "test" database instead of the selected database

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • No version
    • Affects Version/s: 1.45.4
    • Component/s: None
    • None
    • Environment:
      Windows
    • Not Needed
    • None
    • Developer Tools

      When I click the "Open MongoDB Shell" button in MongoDB Compass, it opens the shell but connects to the "test" database instead of the database I'm currently connected to ("my_data_name"). This happens intermittently.

       

      Steps to Reproduce

      1. Open MongoDB Compass and connect to my_data_name
      2. Select a collection.
      3. Click "Open MongoDB Shell" from the right-side menu.
      4. Shell opens with rs0 [direct: primary] test instead of rs0 [direct: primary] my_data_name.

      Expected Results

      Shell should open in my_data_name

      Actual Results

      Shell opens in test

      Hint: The MongoDB Shell should connect to the same database as the one selected in MongoDB Compass.

      Additional Notes

      Versions:

      • MongoDB Compass: 1.45.4

              Assignee:
              Unassigned
              Reporter:
              Kirthick Dev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: