Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-2990

Compass bug when connect to Azure Cosmos/Atlas Free Tier

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.0, 1.18.0
    • Affects Version/s: None
    • Component/s: Compass
    • None
    • Environment:
      - Window 10
      - Compass version 1.11.1
    • Iteration Takaioko

      Step:

      1. Connect to Azure Cosmos DB with SSL option "System CA / Atlas Deployment"
      2. Compass show loading DB icon on the left top of the program and console show error.

      Uncaught TypeError: Cannot read property 'inheritedPrivileges' of undefined
      at Object.getResourcesWithActions (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:71)
      at listDatabases (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:182)
      at runTask (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1618)
      at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1558
      at processQueue (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1568)
      at taskComplete (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1587)
      at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:1611
      at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:958
      at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:316
      at handleCallback (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul…:120)

      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:
      He has same problem with me.
      https://social.msdn.microsoft.com/Forums/azure/en-US/a38d9830-1f3f-4378-91d3-083a8b7e8631/connect-to-cosmos-db-by-compass?forum=AzureDocumentDB

        1. Compass show error.png
          145 kB
          Lalanarwon [X]
        2. null user.png
          160 kB
          Lalanarwon [X]

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            Montritanasarn Lalanarwon [X]
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: