[COMPASS-3993] No collections listed in sidebar Created: 05/Dec/19  Updated: 27/Oct/23  Resolved: 22/Dec/21

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

Type: Bug Priority: Major - P3
Reporter: Lucas Hrabovsky (Inactive) Assignee: Unassigned
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2019-12-05 10.54.38.png    
Epic Link: COMPASS-3936
Documentation Changes: Not Needed

 Description   

HELP-12592 reports users with custom permissions see 0 collections in the sidebar due to data-service instance-detail-helper not defaulting gracefully on isNotAuthorized(err).

Repro

1. Connect to VPN
2. Connect to TSE Testing deployment on atlas mongodb+srv://mansi1:mansi1@persistentcluster1-z01xy.mongodb.net/
3. Connection succeeds but sidebar has 0 collections:

mongodb-data-service:instance-detail-helper checking we can get buildInfo... +31ms
mongodb-data-service:instance-detail-helper user does not have hostInfo privilege, returning empty document {} +416ms
mongodb-data-service:instance-detail-helper isDataLake check: buildInfo.queryEngine +141ms undefined
mongodb-data-service:instance-detail-helper getCmdLineOpts failed! +3ms MongoError: not authorized on admin to execute command { getCmdLineOpts: 1, lsid: { id: UUID("a0258459-bd56-4387-9e6a-38b576d87134") }, $clusterTime: { clusterTime: Timestamp(1575560845, 1), signature: { hash: BinData(0, B3432FDC9B4B4F5FA738CCEF857CCBD6BFBBB589), keyId: 6717742709697675265 } }, $db: "admin" }
    at Connection.<anonymous> (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/mongodb-core/lib/connection/pool.js:443:61)
    at Connection.emit (events.js:182:13)


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