[COMPASS-5741] db.auth MongoParseError Created: 15/Apr/22  Updated: 18/May/23  Resolved: 18/May/23

Status: Closed
Project: Compass
Component/s: Connectivity
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Asparuh Polyovski Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB Compass 1.25 on Windows 64 bit.


Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

Cannot authenticate using the MongoSH Beta

Steps to Reproduce

db.auth("username","Sp3c!al_Symbols_<StrongPWD>");

Expected Results

db.auth should be working similarly to the shell

Actual Results

MongoParseError: URI malformed, cannot be parsedWhat do you observe is happening?

Additional Notes

at parseConnectionString (C:\Users***\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:269843:21) at connect (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:139044:3) at C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:62583:5 at maybePromise (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:772:3) at MongoClient.connect (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:62579:10) at Function.MongoClient.connect (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:62802:22) at CompassServiceProvider._callee18$ (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:131963:46) at tryCatch (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:142640:40) at Generator.invoke [as _invoke] (C:\Users**\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:142870:22) at Generator.next (C:\Users***\AppData\Local\MongoDBCompass\app-1.25.0\resources\app.asar\node_modules@mongodb-js\compass-shell\lib\index.js:142695:21)Any additional information that may be useful to include.



 Comments   
Comment by Jessica Sigafoos [ 18/May/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Jessica Sigafoos [ 06/Sep/22 ]

Hi asparuh.polyovski@delasport.com, following up on this. 

Can you confirm that you were experiencing this issue in v1.25, and try to authenticate to the same database with the latest version of Compass and see if you get the same result? If you experience the same problem, please upload the compass logs to help us debug this issue.

If possible, please also try the latest mongosh and see if the results differ.

Comment by Le Roux Bodenstein [ 14/Jun/22 ]

Thanks for reporting this.

The issue metadata is saying you're using Compass 1.25? Is this correct? Can you please try to authenticate to the same database with the latest compass and see if you get the same result? If you experience the same problem, please upload the compass logs to help us debug this issue.

If possible, please also try the latest mongosh and see if the results differ.

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