<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:28:49 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-12541] Mongorestore cannot restore 2.4-schema users to a clean 2.6 system</title>
                <link>https://jira.mongodb.org/browse/SERVER-12541</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If you mongodump a 2.4 system with user data, then try to mongorestore that to a clean 2.6 system with no users, it will fail saying that you&apos;re trying to restore users with an outdated schema.  This is because &lt;/p&gt;
{getParameter:1, authSchemaVersion:1}
&lt;p&gt; reports upgraded 2.6 systems with users and clean 2.6 systems with no users as the same schema version.  We should be able to detect when the system we&apos;re talking to has v3 authorization schema only because it has no users or roles yet, and allow the restore to proceed with v2.4 schema users.&lt;/p&gt;</description>
                <environment></environment>
        <key id="108282">SERVER-12541</key>
            <summary>Mongorestore cannot restore 2.4-schema users to a clean 2.6 system</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Jan 2014 23:04:23 +0000</created>
                <updated>Wed, 10 Dec 2014 23:15:36 +0000</updated>
                            <resolved>Wed, 5 Mar 2014 18:12:42 +0000</resolved>
                                    <version>2.5.5</version>
                                                    <component>Security</component>
                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="510018" author="spencer" created="Wed, 5 Mar 2014 18:13:29 +0000"  >&lt;p&gt;This worked in 2.6.0-rc0, but won&apos;t work in 2.6.0-rc1 or later, by design.&lt;/p&gt;</comment>
                            <comment id="509997" author="spencer" created="Wed, 5 Mar 2014 18:11:42 +0000"  >&lt;p&gt;This ticket contradicts &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12854&quot; title=&quot;Prevent mongorestore from restoring user data to a 2.6 system with 2.4 schema users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12854&quot;&gt;&lt;del&gt;SERVER-12854&lt;/del&gt;&lt;/a&gt;.  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12854&quot; title=&quot;Prevent mongorestore from restoring user data to a 2.6 system with 2.4 schema users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12854&quot;&gt;&lt;del&gt;SERVER-12854&lt;/del&gt;&lt;/a&gt; is about maintaining the property that after upgrading to the 2.6 binary, user modification is only allowed in the new schema.  In fixing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12854&quot; title=&quot;Prevent mongorestore from restoring user data to a 2.6 system with 2.4 schema users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12854&quot;&gt;&lt;del&gt;SERVER-12854&lt;/del&gt;&lt;/a&gt;, the work that resolved this ticket in 2.6.0-rc0 was undone.&lt;/p&gt;</comment>
                            <comment id="495029" author="xgen-internal-githook" created="Fri, 7 Feb 2014 03:31:49 +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@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12541&quot; title=&quot;Mongorestore cannot restore 2.4-schema users to a clean 2.6 system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12541&quot;&gt;&lt;del&gt;SERVER-12541&lt;/del&gt;&lt;/a&gt; Give restore role the ability to query admin.system.version&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ce5ec7ad32c56a4b92e0745643911b4a1974e61e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ce5ec7ad32c56a4b92e0745643911b4a1974e61e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="494873" author="xgen-internal-githook" created="Thu, 6 Feb 2014 21:52:52 +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-12541&quot; title=&quot;Mongorestore cannot restore 2.4-schema users to a clean 2.6 system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12541&quot;&gt;&lt;del&gt;SERVER-12541&lt;/del&gt;&lt;/a&gt; Make sure 2.4 users can be restored to a clean 2.6 system&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/27fb434eaebc35646cdadf7acac562aa47c06ac8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/27fb434eaebc35646cdadf7acac562aa47c06ac8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="490567" author="xgen-internal-githook" created="Wed, 29 Jan 2014 23:51:40 +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-12369&quot; title=&quot;Update mongodump and mongorestore to properly handle backing up users and roles in 2.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12369&quot;&gt;&lt;del&gt;SERVER-12369&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11461&quot; title=&quot;mongorestore with --drop doesn&amp;#39;t drop admin.system.roles or admin.system.version.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11461&quot;&gt;&lt;del&gt;SERVER-11461&lt;/del&gt;&lt;/a&gt; Update mongodump and mongorestore to properly handle users and roles in 2.6&lt;/p&gt;

&lt;p&gt;There are some known caveats:&lt;br/&gt;
(1) It&apos;s not safe to run mongorestore while user-management commands are&lt;br/&gt;
executing on a live system (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12539&quot; title=&quot;Make sure mongorestoring user/role data doesn&amp;#39;t interfere with ongoing user or role modifications&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12539&quot;&gt;&lt;del&gt;SERVER-12539&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;(2) To restore 2.4 users to a 2.6 system that has never had any users added, you&lt;br/&gt;
must manually insert the version document indicating v1 users into&lt;br/&gt;
admin.system.version, which must be done by a highly privileged user, before&lt;br/&gt;
beginning the restore (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12541&quot; title=&quot;Mongorestore cannot restore 2.4-schema users to a clean 2.6 system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12541&quot;&gt;&lt;del&gt;SERVER-12541&lt;/del&gt;&lt;/a&gt;).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dac6264fb0f0040f7bd8784ed44c33e4a1318d5b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dac6264fb0f0040f7bd8784ed44c33e4a1318d5b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="113753">SERVER-12854</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="142289">TOOLS-124</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="106247">SERVER-12369</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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 29 Jan 2014 23:51:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 50 weeks 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>
                            9 years, 50 weeks 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>xgen-internal-githook</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|hrm2mn:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>99094</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></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_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|hsbiuv:</customfieldvalue>

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