<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:27:39 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-12118] authSchemaUpgradeStep could handle invalid users better</title>
                <link>https://jira.mongodb.org/browse/SERVER-12118</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If you have an invalid user document in admin.system.users (I&apos;ve only run this in a sharded environment), you start getting some very unhelpful errors. I get the below errors when I manually insert &lt;/p&gt;
{ a : 1 }
&lt;p&gt; into admin.system.users on mongos before running authSchemaUpgradeStep:&lt;/p&gt;

&lt;p&gt;m30999| 2013-12-16T12:04:29.404-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Auth schema upgrade processing schema version 1 users from database test&lt;br/&gt;
 m29000| 2013-12-16T12:04:29.404-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7&amp;#93;&lt;/span&gt; end connection 127.0.0.1:51136 (5 connections now open)&lt;br/&gt;
 m30999| 2013-12-16T12:04:29.404-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Assertion: 13111:field not found, expected type 2&lt;br/&gt;
 m30999| 2013-12-16T12:04:29.409-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; 0x10042569b 0x1003e29a2 0x1003d039f 0x1003d047d 0x1002b6460 0x10009a836 0x10003a063 0x10002d378 0x10002c8a7 0x1000b68c9 0x10009d25b 0x100111bd0 0x10033839b 0x1002d7f68 0x100358aed 0x100337a27 0x100002d9f 0x1003eac11 0x1004559c5 0x7fff8c3e8772 &lt;br/&gt;
 m30999|  0   mongos-26                           0x000000010042569b _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 m30999|  1   mongos-26                           0x00000001003e29a2 _ZN5mongo10logContextEPKc + 114&lt;br/&gt;
 m30999|  2   mongos-26                           0x00000001003d039f _ZN5mongo11msgassertedEiPKc + 255&lt;br/&gt;
 m30999|  3   mongos-26                           0x00000001003d047d _ZN5mongo11msgassertedEiRKSs + 29&lt;br/&gt;
 m30999|  4   mongos-26                           0x00000001002b6460 _ZNK5mongo11BSONElement3chkEi + 800&lt;br/&gt;
 m30999|  5   mongos-26                           0x000000010009a836 &lt;em&gt;ZN5mongo12_GLOBAL&lt;/em&gt;_N_118upgradeProcessUserEPNS_25AuthzManagerExternalStateERKNS_10StringDataERKNS_7BSONObjES8_ + 374&lt;br/&gt;
 m30999|  6   mongos-26                           0x000000010003a063 _ZN5mongo20DBClientFunConvertorclERNS_27DBClientCursorBatchIteratorE + 231&lt;br/&gt;
 m30999|  7   mongos-26                           0x000000010002d378 _ZN5mongo18DBClientConnection5queryEN5boost8functionIFvRNS_27DBClientCursorBatchIteratorEEEERKSsNS_5QueryEPKNS_7BSONObjEi + 686&lt;br/&gt;
 m30999|  8   mongos-26                           0x000000010002c8a7 _ZN5mongo12DBClientBase5queryEN5boost8functionIFvRKNS_7BSONObjEEEERKSsNS_5QueryEPS4_i + 397&lt;br/&gt;
 m30999|  9   mongos-26                           0x00000001000b68c9 _ZN5mongo31AuthzManagerExternalStateMongos5queryERKNS_15NamespaceStringERKNS_7BSONObjES6_RKN5boost8functionIFvS6_EEE + 429&lt;br/&gt;
 m30999|  10  mongos-26                           0x000000010009d25b _ZN5mongo20AuthorizationManager17upgradeSchemaStepERKNS_7BSONObjEPb + 3035&lt;br/&gt;
 m30999|  11  mongos-26                           0x0000000100111bd0 _ZN5mongo24CmdAuthSchemaUpgradeStep3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb + 290&lt;br/&gt;
 m30999|  12  mongos-26                           0x000000010033839b _ZN5mongo7Command22execCommandClientBasicEPS0_RNS_11ClientBasicEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb + 681&lt;br/&gt;
 m30999|  13  mongos-26                           0x00000001002d7f68 _ZN5mongo7Command20runAgainstRegisteredEPKcRNS_7BSONObjERNS_14BSONObjBuilderEi + 678&lt;br/&gt;
 m30999|  14  mongos-26                           0x0000000100358aed _ZN5mongo14SingleStrategy7queryOpERNS_7RequestE + 1851&lt;br/&gt;
 m30999|  15  mongos-26                           0x0000000100337a27 _ZN5mongo7Request7processEi + 1249&lt;br/&gt;
 m30999|  16  mongos-26                           0x0000000100002d9f _ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 141&lt;br/&gt;
 m30999|  17  mongos-26                           0x00000001003eac11 _ZN5mongo17PortMessageServer17handleIncomingMsgEPv + 1681&lt;br/&gt;
 m30999|  18  mongos-26                           0x00000001004559c5 thread_proxy + 229&lt;br/&gt;
 m30999|  19  libsystem_c.dylib                   0x00007fff8c3e8772 _pthread_start + 327&lt;br/&gt;
 m30000| 2013-12-16T12:04:29.409-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; end connection 127.0.0.1:51123 (4 connections now open)&lt;br/&gt;
 m30999| 2013-12-16T12:04:29.409-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Detected bad connection created at 1387213466016787 microSec, clearing pool for localhost:30000 of 0 connections&lt;br/&gt;
 m30999| 2013-12-16T12:04:29.409-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; Auth schema upgraded failed with Unknown error code field not found, expected type 2&lt;br/&gt;
 m30999| 2013-12-16T12:04:29.409-0500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; distributed lock &apos;authorizationData/specter.local:30999:1387213466:16807&apos; unlocked. &lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;field not found, expected type 2&quot;, &quot;code&quot; : 13111 }

&lt;p&gt;I&apos;m not sure what the correct behavior here is. I&apos;d imagine there are two possible options:&lt;/p&gt;

&lt;p&gt;1) Ignore invalid user documents and only upgrade valid ones, perhaps logging an error when there&apos;s a bad document.&lt;br/&gt;
2) Fail.&lt;/p&gt;

&lt;p&gt;We seem to do #2, which is perfectly valid, but it would help if the error message included something like the contents of the invalid user doc.&lt;/p&gt;</description>
                <environment>OSX</environment>
        <key id="102721">SERVER-12118</key>
            <summary>authSchemaUpgradeStep could handle invalid users better</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="valeri.karpov@mongodb.com">Valeri Karpov</reporter>
                        <labels>
                            <label>26qa</label>
                    </labels>
                <created>Mon, 16 Dec 2013 17:10:54 +0000</created>
                <updated>Mon, 11 Jul 2016 17:38:25 +0000</updated>
                            <resolved>Fri, 7 Feb 2014 22:14:12 +0000</resolved>
                                    <version>2.5.4</version>
                                    <fixVersion>2.6.0-rc0</fixVersion>
                                    <component>Security</component>
                    <component>Sharding</component>
                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="495488" author="xgen-internal-githook" created="Fri, 7 Feb 2014 20:43:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12118&quot; title=&quot;authSchemaUpgradeStep could handle invalid users better&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12118&quot;&gt;&lt;del&gt;SERVER-12118&lt;/del&gt;&lt;/a&gt; Better error message when invalid user doc detected during authSchemaUpgrade&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1e7aec1f31aa2794cdb3ca59d823d125d7896b58&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1e7aec1f31aa2794cdb3ca59d823d125d7896b58&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="35428" name="sharded_upgrade_invalid_24_users.js" size="2002" author="valeri.karpov@mongodb.com" created="Mon, 16 Dec 2013 17:11:14 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Feb 2014 22:55:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 1 week, 5 days 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>
                            10 years, 1 week, 5 days 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
            <customfieldvalue>valeri.karpov@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm5br:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>94000</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|hsj7j3:</customfieldvalue>

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