<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:15 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>[JAVA-3712] User authorization issue</title>
                <link>https://jira.mongodb.org/browse/JAVA-3712</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;&#24179;&#21488;&#23433;&#35013;&#20102;&#19968;&#20010;&#19977;&#20010;&#33410;&#28857;&#30340;MongoDB&#22797;&#21046;&#38598;&#32676;&#12290;&lt;/p&gt;

&lt;p&gt;&#24403;&#25105;&#22312;&#20027;&#33410;&#28857;&#30331;&#38470;admin&#25968;&#25454;&#24211;&#65292;&#28982;&#21518;&#36873;&#25321;&#20102;&#20854;&#20013;&#30340;&#19968;&#20010;&#24212;&#29992;&#25968;&#25454;&#24211;&#65292;&#20351;&#29992;db.createUser({user:&quot;XX&quot;,pwd:&quot;XX&quot;,roles:[&lt;/p&gt;
{role:&quot;dbOwner&quot;,db:&quot;XXX&quot;}
&lt;p&gt;]})&#32473;&#25968;&#25454;&#24211;&#21019;&#24314;&#20102;&#19968;&#20010;&#29992;&#25143;&#12290;&lt;/p&gt;

&lt;p&gt;&#28982;&#21518;&#25105;&#20351;&#29992;robo&#31561;&#24037;&#20855;&#65292;&#33021;&#20351;&#29992;&#36825;&#20010;&#36134;&#21495;&#23494;&#30721;&#35775;&#38382;&#23545;&#24212;&#30340;&#25968;&#25454;&#24211;&#65292;&#20063;&#33021;&#36827;&#34892;&#26597;&#35810;&#20462;&#25913;&#31561;&#25805;&#20316;&#12290;&#20294;&#26159;&#24403;&#25105;&#22312;&#25511;&#21046;&#21488;&#20351;&#29992;mongo&#21629;&#20196;&#36830;&#25509;&#36827;&#21435;&#20043;&#21518;&#65292;&#25152;&#26377;&#30340;&#25805;&#20316;&#37117;&#34987;&#25298;&#32477;&#12290;&#38169;&#35823;&#20449;&#24687;&#19968;&#30452;&#26174;&#31034;&#25105;&#19968;&#20010;&#24050;&#32463;&#21024;&#38500;&#20102;&#30340;test&#25968;&#25454;&#24211;&#26435;&#38480;&#34987;&#25298;&#32477;&#65292;&#36319;&#25105;&#24403;&#21069;&#25805;&#20316;&#30340;&#25968;&#25454;&#23436;&#20840;&#19981;&#25645;&#36793;&#12290;&#24403;&#25105;&#36755;&#20837;show users&#65292;&#31867;&#20284;&#19979;&#38754;&#30340;&#38169;&#35823;&#20449;&#24687;&#65306;&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;2020-04-28T19:17:09.066+0800 E QUERY &lt;span class=&quot;error&quot;&gt;&amp;#91;js&amp;#93;&lt;/span&gt; Error: not authorized on test to execute command { usersInfo: 1.0, lsid: &lt;/p&gt;
{ id: UUID(&quot;fd77665d-73e4-4281-98e3-db3ef79849ca&quot;) }
&lt;p&gt;, $clusterTime: { clusterTime: Timestamp(1588072625, 1), signature: &lt;/p&gt;
{ hash: BinData(0, 3F0BA488A9BF081067029BC157D379CB7364AE4A), keyId: 6815855173080973313 }
&lt;p&gt; }, $db: &quot;test&quot; }&#160;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;&#20854;&#20013;&#19978;&#36848;&#25253;&#38169;&#20449;&#24687;&#20013;&#30340;&#25968;&#25454;&#24211;test&#65292;&#26159;&#36319;&#24403;&#21069;&#25968;&#25454;&#24211;&#23436;&#20840;&#27809;&#26377;&#20219;&#20309;&#32852;&#31995;&#30340;&#12290;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#36755;&#20837;show collections&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;Warning: unable to run listCollections, attempting to approximate collection names by parsing connectionStatus&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;&#25509;&#30528;&#25105;&#39564;&#35777;&#30331;&#38470; db.auth(&quot;xxxx&quot;,&quot;xxxx&quot;)&#65292;&#25105;&#30830;&#35748;&#20102;&#26080;&#25968;&#27425;&#65292;&#20877;&#36134;&#21495;&#23494;&#30721;&#36755;&#23545;&#30340;&#24773;&#20917;&#19979;&#36824;&#26159;&#34987;&#25298;&#32477;&#12290;&#36825;&#22914;&#26524;&#26159;&#20010;bug&#65292;&#24076;&#26395;&#20320;&#20204;&#33021;&#22815;&#20462;&#25913;&#12290;&#21542;&#21017;&#24076;&#26395;&#33021;&#22815;&#35828;&#26126;&#19968;&#19979;&#21407;&#22240;&#65292;&#30446;&#21069;&#25105;&#27809;&#25214;&#21040;&#36935;&#21040;&#31867;&#20284;&#38382;&#39064;&#30340;&#31572;&#26696;&#12290;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>system : centos 7</environment>
        <key id="1331199">JAVA-3712</key>
            <summary>User authorization issue</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="253684597@qq.com">jiang yongbing</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Apr 2020 11:22:22 +0000</created>
                <updated>Tue, 28 Apr 2020 12:08:29 +0000</updated>
                            <resolved>Tue, 28 Apr 2020 12:08:29 +0000</resolved>
                                    <version>4.0.1</version>
                                                    <component>Command Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3058203" author="jeff.yemin" created="Tue, 28 Apr 2020 12:08:29 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=253684597%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;253684597@qq.com&quot;&gt;253684597@qq.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You&apos;ve opened an issue in the JAVA project, which is meant for reporting bugs against the MongoDB Java driver. Your question seems unrelated to the Java driver, so I&apos;m going to close it.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I suggest you first seek help in our&#160;[Community Forums|&lt;a href=&quot;https://developer.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://developer.mongodb.com/community/forums/&lt;/a&gt;] to ascertain whether this is truly a bug.&lt;/p&gt;</comment>
                            <comment id="3058198" author="jeff.yemin" created="Tue, 28 Apr 2020 12:02:29 +0000"  >&lt;p&gt;I attempted to translate the description via translate.google.com:&lt;/p&gt;

&lt;p&gt;The platform installed a three-node MongoDB replication cluster.&lt;/p&gt;

&lt;p&gt;When I log in to the admin database on the master node, and then select one of the application databases, use &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;db.createUser ({user: &quot;XX&quot;, pwd: &quot;XX&quot;, roles: [&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;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&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;   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;{role: &quot;dbOwner&quot;, db: &quot;XXX&quot;}&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;   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;]}) &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: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Created a user for the database.&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;Then I use tools such as robo to use this account password to access the corresponding database, as well as query and modify operations. But when I use the mongo command to connect in the console, all operations are rejected. The error message keeps showing that the permission of a test database that I have deleted has been denied, which is completely incompatible with the data I am currently operating. When I enter show users, an error message similar to the following:&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;2020-04-28T19:17:09.066+0800 E QUERY &lt;span class=&quot;error&quot;&gt;&amp;#91;js&amp;#93;&lt;/span&gt; Error: not authorized on test to execute command { usersInfo: 1.0, lsid: &lt;/p&gt;
{ id: UUID(&quot;fd77665d-73e4-4281-98e3-db3ef79849ca&quot;) }
&lt;p&gt;, $clusterTime: { clusterTime: Timestamp(1588072625, 1), signature: &lt;/p&gt;
{ hash: BinData(0, 3F0BA488A9BF081067029BC157D379CB7364AE4A), keyId: 6815855173080973313 }
&lt;p&gt; }, $db: &quot;test&quot; }&#160;&lt;/p&gt;

&lt;hr /&gt;

&lt;p&gt;Among them, the database test in the above error message has absolutely no connection with the current database.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Input: show collections&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;Warning: unable to run listCollections, attempting to approximate collection names by parsing connectionStatus&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;Then I verified the login to db.auth (&quot;xxxx&quot;, &quot;xxxx&quot;), I confirmed it countless times, and it was rejected even if the account password was entered correctly. If this is a bug, I hope you can fix it. Otherwise, I hope I can explain why. At present, I have not found an answer to a similar problem.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx5fy7:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>