[COMPASS-2990] Compass bug when connect to Azure Cosmos/Atlas Free Tier Created: 02/Jan/18 Updated: 29/Oct/23 Resolved: 11/Dec/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Compass |
| Affects Version/s: | None |
| Fix Version/s: | 1.17.0, 1.18.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Lalanarwon [X] | Assignee: | Durran Jordan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
|
||
| Attachments: |
|
| Sprint: | Iteration Takaioko |
| Description |
|
Step: 1. Connect to Azure Cosmos DB with SSL option "System CA / Atlas Deployment" Uncaught TypeError: Cannot read property 'inheritedPrivileges' of undefined Cause: Function "getUserInfo", in file "node_modules\mongodb-data-service\lib\instance-detail-helper.js" line 316: done(null, _res.users[0]);, should support when _res.users is empty array. I found it got empty array when connect to Azure Cosmos and it was error when call function "getResourcesWithActions" in "node_modules\mongodb-security\index.js" line 71: var privileges = userOrRole.inheritedPrivileges; while userOrRole was undefined but it try to get userOrRole.inheritedPrivileges. Note: |
| Comments |
| Comment by Githook User [ 11/Dec/18 ] | |||
|
Author: {'name': 'Durran Jordan', 'email': 'durran@gmail.com', 'username': 'durran'}Message: | |||
| Comment by Vitaliy M [ 11/Jul/18 ] | |||
|
Anyone, willing really hard to connect to Cosmos, may hack it fast to get some of the app features:
In the app/node_modules/mongodb-security/index.js add this in the beginning of the getResourcesWithActions function:
*works for version 1.14.6 | |||
| Comment by Durran Jordan [ 04/Jan/18 ] | |||
|
Thank you very much for the detailed report but unfortunately Compass only supports connecting to MongoDB deployments. Azure Cosmos is not supported. Note that while Cosmos has a MongoDB API and has support for the MongoDB wire protocol, it is a subset of the actual commands that MongoDB has and the particular one in question here causing the error is userInfo which Cosmos does not have (https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support). If you'd like to have your data on Azure, might I suggest using MongoDB Atlas instead and hosting your instances on Azure? |