<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:34 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-3966] mongodump won&apos;t dump a specific db/collection using admin credentials</title>
                <link>https://jira.mongodb.org/browse/SERVER-3966</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Tested with a 3 node replica set using auth.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Dump everything using admin credentials works:&lt;br/&gt;
./mongodump --username admin --password mypassword --out dumpfiles&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
all dbs&lt;br/&gt;
DATABASE: foo	 to 	dumpfiles/foo&lt;br/&gt;
	foo.things to dumpfiles/foo/things.bson&lt;br/&gt;
		 10000 objects&lt;br/&gt;
	foo.system.indexes to dumpfiles/foo/system.indexes.bson&lt;br/&gt;
		 2 objects&lt;br/&gt;
	foo.system.profile to dumpfiles/foo/system.profile.bson&lt;br/&gt;
		 60 objects&lt;br/&gt;
	foo.system.users to dumpfiles/foo/system.users.bson&lt;br/&gt;
		 2 objects&lt;br/&gt;
DATABASE: admin	 to 	dumpfiles/admin&lt;br/&gt;
	admin.system.users to dumpfiles/admin/system.users.bson&lt;br/&gt;
		 1 objects&lt;br/&gt;
	admin.system.indexes to dumpfiles/admin/system.indexes.bson&lt;br/&gt;
		 1 objects&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;Dumping a specific database using admin credentials fails&lt;br/&gt;
./mongodump --username admin --password mypassword --db foo --out dumpfiles&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
Tue Sep 27 11:45:38 DBClientCursor::init call() failed&lt;br/&gt;
assertion: 10276 DBClientBase::findN: transport error: 127.0.0.1 query: 
{ authenticate: 1, nonce: &quot;3112e50c77ef2be&quot;, user: &quot;admin&quot;, key: &quot;173615f515dc85297a54cb81933675d9&quot; }&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;Dumping a specific database with user credentials works&lt;br/&gt;
./mongodump --username foouser --password foopassword --db foo --out dumpfiles&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
DATABASE: foo	 to 	dumpfiles/foo&lt;br/&gt;
	foo.things to dumpfiles/foo/things.bson&lt;br/&gt;
		 10000 objects&lt;br/&gt;
	foo.system.indexes to dumpfiles/foo/system.indexes.bson&lt;br/&gt;
		 2 objects&lt;br/&gt;
	foo.system.profile to dumpfiles/foo/system.profile.bson&lt;br/&gt;
		 49 objects&lt;br/&gt;
	foo.system.users to dumpfiles/foo/system.users.bson&lt;br/&gt;
		 2 objects&lt;/li&gt;
&lt;/ol&gt;

</description>
                <environment></environment>
        <key id="22902">SERVER-3966</key>
            <summary>mongodump won&apos;t dump a specific db/collection using admin credentials</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="benjamin.becker">Ben Becker</assignee>
                                    <reporter username="bernie@mongodb.com">Bernie Hackett</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Sep 2011 21:53:32 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:55 +0000</updated>
                            <resolved>Sat, 3 Mar 2012 02:05:07 +0000</resolved>
                                    <version>2.0.0</version>
                                    <fixVersion>2.1.1</fixVersion>
                                    <component>Tools</component>
                                        <votes>1</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="94807" author="benjamin.becker" created="Fri, 2 Mar 2012 22:55:30 +0000"  >&lt;p&gt;This was fixed by commit 02853421 (related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4614&quot; title=&quot;mongorestore ignores perrmissions and acts like it worked&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4614&quot;&gt;&lt;del&gt;SERVER-4614&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;</comment>
                            <comment id="82001" author="alaphoid" created="Tue, 24 Jan 2012 16:41:59 +0000"  >&lt;p&gt;This is a rather annoying issue, the dump app really needs a way to auth against the admin database but dump a different specified database.  Goes for mongorestore as well.&lt;br/&gt;
I can work around this for now by adding a backup user account to all databases and using that.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 24 Jan 2012 16:41:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 50 weeks, 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>
                            11 years, 50 weeks, 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_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>benjamin.becker</customfieldvalue>
            <customfieldvalue>bernie@mongodb.com</customfieldvalue>
            <customfieldvalue>alaphoid</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hropdr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9401</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="10153"><![CDATA[Unneeded]]></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|ht08yf:</customfieldvalue>

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