<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19: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-9191] cannot see replsetoplogs when db needs admin logins</title>
                <link>https://jira.mongodb.org/browse/SERVER-9191</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;cannot see replsetoplogs when db needs admin logins&lt;br/&gt;
$err: &quot;not authorized for query on local.oplog.rs&quot; code: 16550&lt;/p&gt;</description>
                <environment></environment>
        <key id="70280">SERVER-9191</key>
            <summary>cannot see replsetoplogs when db needs admin logins</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="matt.dannenberg">Matt Dannenberg</assignee>
                                    <reporter username="cxmcc">Xiuming Chen</reporter>
                        <labels>
                            <label>pull-request</label>
                    </labels>
                <created>Sun, 31 Mar 2013 01:21:18 +0000</created>
                <updated>Mon, 11 Jul 2016 17:59:37 +0000</updated>
                            <resolved>Wed, 26 Jun 2013 17:41:53 +0000</resolved>
                                    <version>2.4.1</version>
                                    <fixVersion>2.5.1</fixVersion>
                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="640802" author="brettcave" created="Tue, 1 Jul 2014 17:37:21 +0000"  >&lt;p&gt;Could this bug also be affecting mongooplog when replaying the oplog to a db with authentication enabled?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/questions/24454372/mongooplog-is-failing-with-unauthorized-error/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/24454372/mongooplog-is-failing-with-unauthorized-error/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have added a user to admin with readWriteAnyDatabase,clusterAdmin in the admin db, but get the same error message, and wondering if its related to this bug, or possibly a new bug. I am seeing this on mongo 2.4.10.&lt;/p&gt;
</comment>
                            <comment id="368302" author="matt.kangas@10gen.com" created="Wed, 26 Jun 2013 17:41:53 +0000"  >&lt;p&gt;Impact: fixes broken feature of REST interface. Merged in 23f8257fa&lt;/p&gt;</comment>
                            <comment id="368299" author="auto" created="Wed, 26 Jun 2013 17:39:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;cxmcc&apos;, u&apos;name&apos;: u&apos;Xiuming Chen&apos;, u&apos;email&apos;: u&apos;cc@cxm.cc&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9191&quot; title=&quot;cannot see replsetoplogs when db needs admin logins&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9191&quot;&gt;&lt;del&gt;SERVER-9191&lt;/del&gt;&lt;/a&gt; In oplog page on rest interface, use oplogreader (which did authentication) instead of dbclient (w/o auth) to query oplogs. This fixes the broken oplog page for dbs having a admin account.&lt;/p&gt;

&lt;p&gt;Signed-off-by: Matt Kangas &amp;lt;matt.kangas@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/23f8257fa37ff164e16094db044a113779f84b2b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/23f8257fa37ff164e16094db044a113779f84b2b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="306979" author="cxmcc" created="Fri, 5 Apr 2013 19:02:44 +0000"  >&lt;p&gt;Hi Eric, I have signed the agreement. Please let me know if there is any problem. thanks&lt;/p&gt;</comment>
                            <comment id="306693" author="milkie" created="Fri, 5 Apr 2013 13:18:11 +0000"  >&lt;p&gt;Hi Xiuming.  Thanks for the pull request.  Have you signed the Contributor Agreement?&lt;br/&gt;
I will try to incorporate this fix in the next release.&lt;/p&gt;</comment>
                            <comment id="306565" author="cxmcc" created="Fri, 5 Apr 2013 08:39:45 +0000"  >&lt;p&gt;@Jason I am trying to fix this by opening a pull request that I believe is gonna fix this issue:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/pull/412&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/412&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From the code I read, I think the oplog page should fail if the collection local.oplog.rs requires authentication, since the original logic tried to use DBClient to query without auth.&lt;/p&gt;</comment>
                            <comment id="302553" author="cxmcc" created="Sun, 31 Mar 2013 05:43:14 +0000"  >&lt;p&gt;the roles of the admin user is set to [ &quot;clusterAdmin&quot;, &quot;readWriteAnyDatabase&quot;, &quot;dbAdminAnyDatabase&quot; ]&lt;br/&gt;
this information is accessible through clients with this admin user account&lt;br/&gt;
however on the the rest ui an error still prompted: $err: &quot;unauthorized db:local ns:local.oplog.rs lock type:0 client:SOMEIP&quot; code: 10057&lt;/p&gt;</comment>
                            <comment id="302515" author="rassi@10gen.com" created="Sun, 31 Mar 2013 03:14:22 +0000"  >&lt;p&gt;I assume your admin user has either the role &quot;dbAdminAnyDatabase&quot; or &quot;clusterAdmin&quot; &amp;#8211; note that these roles do not have the privilege to view replication statistics.  You will need to grant this user the &quot;read&quot; role on the &quot;local&quot; database in order to access this information (however, be warned that the local database contains the oplog, which contains a record of every write to this replica set member).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="25483" name="1.jpg" size="27256" author="cxmcc" created="Sun, 31 Mar 2013 01:21:18 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 31 Mar 2013 03:14:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 33 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>
                            9 years, 33 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>brettcave</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>matt.dannenberg</customfieldvalue>
            <customfieldvalue>matt.kangas</customfieldvalue>
            <customfieldvalue>cxmcc</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmz13:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>48026</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;have a replset&lt;br/&gt;
enable auth&lt;br/&gt;
create an admin account&lt;br/&gt;
enable rest api&lt;br/&gt;
go to page: /_replSetOplog?_id=0&lt;/p&gt;</customfieldvalue>

                        </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|hszton:</customfieldvalue>

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