<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:24 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>[SERVER-4241] Shell connections don&apos;t re-authenticate on reconnect</title>
                <link>https://jira.mongodb.org/browse/SERVER-4241</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; mongo&lt;br/&gt;
MongoDB shell version: 2.0.1&lt;br/&gt;
connecting to: test&lt;br/&gt;
test&lt;span class=&quot;error&quot;&gt;&amp;#91;17:27:54&amp;#93;&lt;/span&gt;&amp;gt; db.foo.find()&lt;br/&gt;
error: &lt;/p&gt;
{
        &quot;$err&quot; : &quot;unauthorized db:test lock type:-1 client:127.0.0.1&quot;,
        &quot;code&quot; : 10057
}
test[17:27:59]&amp;gt; db.auth(&apos;spencer&apos;,&apos;password&apos;)
1
test[17:28:12]&amp;gt; db.foo.find()
{ &quot;_id&quot; : ObjectId(&quot;4ebafe6909b6ffecbd780b6b&quot;), &quot;a&quot; : 1 }

&lt;p&gt;// RESTART MONGOD SERVER&lt;/p&gt;

&lt;p&gt;test&lt;span class=&quot;error&quot;&gt;&amp;#91;17:28:19&amp;#93;&lt;/span&gt;&amp;gt; db.foo.find()&lt;br/&gt;
Wed Nov  9 17:30:04 DBClientCursor::init call() failed&lt;br/&gt;
Wed Nov  9 17:30:04 query failed : test.foo {} to: 127.0.0.1&lt;br/&gt;
Error: error doing query: failed&lt;br/&gt;
Wed Nov  9 17:30:04 trying reconnect to 127.0.0.1&lt;br/&gt;
Wed Nov  9 17:30:04 reconnect 127.0.0.1 ok&lt;br/&gt;
test&lt;span class=&quot;error&quot;&gt;&amp;#91;17:30:4&amp;#93;&lt;/span&gt;&amp;gt; db.foo.find()&lt;br/&gt;
error: {&lt;br/&gt;
        &quot;$err&quot; : &quot;unauthorized db:test lock type:-1 client:127.0.0.1&quot;,&lt;br/&gt;
        &quot;code&quot; : 10057&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
        <key id="24711">SERVER-4241</key>
            <summary>Shell connections don&apos;t re-authenticate on reconnect</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="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Nov 2011 22:30:53 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:53 +0000</updated>
                            <resolved>Mon, 14 Nov 2011 22:56:41 +0000</resolved>
                                                    <fixVersion>2.1.0</fixVersion>
                                    <component>Security</component>
                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="66927" author="auto" created="Tue, 15 Nov 2011 21:53:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4241&quot; title=&quot;Shell connections don&amp;#39;t re-authenticate on reconnect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4241&quot;&gt;&lt;del&gt;SERVER-4241&lt;/del&gt;&lt;/a&gt;: v8 needs method too&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/377c4e96f74d3a9fed2adf8fda8e8e6bdfe8bf38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/377c4e96f74d3a9fed2adf8fda8e8e6bdfe8bf38&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66688" author="auto" created="Mon, 14 Nov 2011 22:54:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: Handle auth in C++, not JS &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4241&quot; title=&quot;Shell connections don&amp;#39;t re-authenticate on reconnect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4241&quot;&gt;&lt;del&gt;SERVER-4241&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/200956560469c1a25ed7078cc541ffa45f3e0c40&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/200956560469c1a25ed7078cc541ffa45f3e0c40&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66682" author="eliot" created="Mon, 14 Nov 2011 22:14:27 +0000"  >&lt;p&gt;Having the shell call the c++ methods is probably the way to go.&lt;/p&gt;</comment>
                            <comment id="66655" author="kristina" created="Mon, 14 Nov 2011 21:02:28 +0000"  >&lt;p&gt;I&apos;m not sure how to actually fix this, as reconnection is handled by C++ and auth is handled by JS.  I could move DB.prototype.auth to C++, I guess. &lt;/p&gt;

&lt;p&gt;Anyone have other suggestions how this should be done?&lt;/p&gt;</comment>
                            <comment id="66112" author="auto" created="Fri, 11 Nov 2011 04:47:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Make test use rslib&apos;s reconnect function as it has logic to work around &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4241&quot; title=&quot;Shell connections don&amp;#39;t re-authenticate on reconnect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4241&quot;&gt;&lt;del&gt;SERVER-4241&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/658b5ca30f20f469f68b2613399da66f88743bec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/658b5ca30f20f469f68b2613399da66f88743bec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66111" author="auto" created="Fri, 11 Nov 2011 04:47:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Add re-authentication logic to rslib reconnect to work-around &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4241&quot; title=&quot;Shell connections don&amp;#39;t re-authenticate on reconnect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4241&quot;&gt;&lt;del&gt;SERVER-4241&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2442d4c6ce6288677171e81dd869441692326d80&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2442d4c6ce6288677171e81dd869441692326d80&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="24690">SERVER-4237</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 11 Nov 2011 04:47:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 14 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrom4n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9133</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrizef:</customfieldvalue>

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