<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:31:46 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[COMPASS-2990] Compass bug when connect to Azure Cosmos/Atlas Free Tier</title>
                <link>https://jira.mongodb.org/browse/COMPASS-2990</link>
                <project id="13182" key="COMPASS">Compass </project>
                    <description>&lt;p&gt;&lt;b&gt;Step:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;1. Connect to Azure Cosmos DB with SSL option &quot;System CA / Atlas Deployment&quot;&lt;br/&gt;
2. Compass show loading DB icon on the left top of the program and console show error.&lt;/p&gt;

&lt;p&gt;Uncaught TypeError: Cannot read property &apos;inheritedPrivileges&apos; of undefined&lt;br/&gt;
    at Object.getResourcesWithActions (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:71)&lt;br/&gt;
    at listDatabases (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:182)&lt;br/&gt;
    at runTask (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:1618)&lt;br/&gt;
    at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:1558&lt;br/&gt;
    at processQueue (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:1568)&lt;br/&gt;
    at taskComplete (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:1587)&lt;br/&gt;
    at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:1611&lt;br/&gt;
    at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:958&lt;br/&gt;
    at C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:316&lt;br/&gt;
    at handleCallback (C:\Users\Kizeki-Dell\AppData\Local\MongoDBCompassCommunity\app-1.11.1\resources\app.asar\node_modul&#8230;:120)&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Cause:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Function &quot;getUserInfo&quot;, in file &quot;node_modules\mongodb-data-service\lib\instance-detail-helper.js&quot; line 316: done(null, _res.users&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;);, should support when _res.users is empty array.&lt;/p&gt;

&lt;p&gt;I found it got empty array when connect to Azure Cosmos and it was error when call function &quot;getResourcesWithActions&quot; in &quot;node_modules\mongodb-security\index.js&quot; line 71: var privileges = userOrRole.inheritedPrivileges; while userOrRole was undefined but it try to get userOrRole.inheritedPrivileges.&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt;&lt;br/&gt;
He has same problem with me. &lt;br/&gt;
&lt;a href=&quot;https://social.msdn.microsoft.com/Forums/azure/en-US/a38d9830-1f3f-4378-91d3-083a8b7e8631/connect-to-cosmos-db-by-compass?forum=AzureDocumentDB&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://social.msdn.microsoft.com/Forums/azure/en-US/a38d9830-1f3f-4378-91d3-083a8b7e8631/connect-to-cosmos-db-by-compass?forum=AzureDocumentDB&lt;/a&gt;&lt;/p&gt;</description>
                <environment>- Window 10&lt;br/&gt;
- Compass version 1.11.1</environment>
        <key id="477700">COMPASS-2990</key>
            <summary>Compass bug when connect to Azure Cosmos/Atlas Free Tier</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="durran.jordan@mongodb.com">Durran Jordan</assignee>
                                    <reporter username="Montritanasarn">Lalanarwon [X]</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Jan 2018 10:53:00 +0000</created>
                <updated>Sun, 29 Oct 2023 02:41:22 +0000</updated>
                            <resolved>Tue, 11 Dec 2018 00:13:41 +0000</resolved>
                                                    <fixVersion>1.17.0</fixVersion>
                    <fixVersion>1.18.0</fixVersion>
                                    <component>Compass</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="2086519" author="xgen-internal-githook" created="Tue, 11 Dec 2018 00:26:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Durran Jordan&apos;, &apos;email&apos;: &apos;durran@gmail.com&apos;, &apos;username&apos;: &apos;durran&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-2990&quot; title=&quot;Compass bug when connect to Azure Cosmos/Atlas Free Tier&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-2990&quot;&gt;&lt;del&gt;COMPASS-2990&lt;/del&gt;&lt;/a&gt;: Connect with Azure Cosmos&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/COMPASS-2990&quot; title=&quot;Compass bug when connect to Azure Cosmos/Atlas Free Tier&quot; class=&quot;issue-link&quot; data-issue-key=&quot;COMPASS-2990&quot;&gt;&lt;del&gt;COMPASS-2990&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/compass/commit/d149e8ce118c53854fa59a7ff129905567aa4078&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/compass/commit/d149e8ce118c53854fa59a7ff129905567aa4078&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1944972" author="glukki" created="Wed, 11 Jul 2018 23:25:34 +0000"  >&lt;p&gt;Anyone, willing really hard to connect to Cosmos, may hack it&#160;fast to get &lt;b&gt;some&lt;/b&gt; of the app features:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;npx asar extract app.asar app&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: #ff1493; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mv&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; app.asar app.asar.bak&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;In the &lt;tt&gt;app/node_modules/mongodb-security/index.js&lt;/tt&gt;&#160;add this in the beginning of the &lt;tt&gt;getResourcesWithActions&lt;/tt&gt; function:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; if (!userOrRole) { return []; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;*works for&#160;version&#160;&lt;tt&gt;1.14.6&lt;/tt&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1764880" author="durran.jordan@10gen.com" created="Thu, 4 Jan 2018 13:11:54 +0000"  >&lt;p&gt;Thank you very much for the detailed report but unfortunately Compass only supports connecting to MongoDB deployments. Azure Cosmos is not supported.&lt;/p&gt;

&lt;p&gt;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 &lt;tt&gt;userInfo&lt;/tt&gt; which Cosmos does not have (&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-feature-support&lt;/a&gt;). If you&apos;d like to have your data on Azure, might I suggest using MongoDB Atlas instead and hosting your instances on Azure?&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="174511" name="Compass show error.png" size="148196" author="Montritanasarn" created="Tue, 2 Jan 2018 10:52:49 +0000"/>
                            <attachment id="174510" name="null user.png" size="163714" author="Montritanasarn" created="Tue, 2 Jan 2018 10:52:53 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 2 Jan 2018 15:55:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 9 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 9 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>durran.jordan@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>Montritanasarn</customfieldvalue>
            <customfieldvalue>glukki</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htn5b3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hty7nr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2718">Iteration Takaioko</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htmrfj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>