[COMPASS-6931] Embedded mongosh is stuck after a semicolon separating 2 commands Created: 18/Jun/23  Updated: 15/Dec/23  Resolved: 11/Jul/23

Status: Closed
Project: Compass
Component/s: Embedded Shell
Affects Version/s: 1.37.0
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Ventura 13.4
node.js / npm versions:
Additional info:


Attachments: HTML File 648f3cadd63ca8d495719c4c_log     PNG File Screenshot 2023-06-18 at 1.26.47 PM.png     PNG File Screenshot 2023-06-18 at 12.59.53 PM.png    
Assigned Teams:
Developer Tools
Documentation Changes: Not Needed
Sprint: Up for triaging

 Description   

Problem Statement/Rationale

What is going wrong? What action would you like the Engineering team to take?

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Embedded mongosh does not seem to be parsing semicolons properly.

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

db "TTT" was created via the UI.

Then entered

 

use TTT;db.rrr.insertOne({ "_id" : "555",
"bbb":2
}) 

Expected Results

What do you expect to happen?

Insert of a document. Able to use Compass normally

Actual Results

What do you observe is happening?

Seeing the "Spinning circle" like it's processing. Can't run anything further in embedded mongosh. Had to quit application

Additional Notes

Any additional information that may be useful to include.

Log attached



 Comments   
Comment by Rhys Howell [ 11/Jul/23 ]

felicia.hsieh@mongodb.com We can't reproduce on 1.38.2 - can you try if you have a moment? Feel free to reopen if it persists.

Comment by Felicia Hsieh [ 18/Jun/23 ]

Using the ";" the first time is not allowed, but using a ";" the second time is accepted in changing dbs. See image

Generated at Wed Feb 07 22:44:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.