<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:53 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-4754] Profiling silently fails with --auth</title>
                <link>https://jira.mongodb.org/browse/SERVER-4754</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;It seems that when I start a mongod with --auth, then do db.setProfilingLevel(2) and a find(), nothing is stored in system.profile. Repeating the same test without --auth succeeds.&lt;/p&gt;

&lt;p&gt;I run the attached test_profile.sh against a mongod started with and without auth:&lt;/p&gt;

&lt;p&gt;$ mongod --dbpath ./data/db4000 --port 4000 --logpath ./log/db4000.log --fork&lt;br/&gt;
$ bash test-profile.sh&lt;br/&gt;
MongoDB shell version: 2.0.1&lt;br/&gt;
connecting to: 127.0.0.1:4000/test&lt;br/&gt;
dropping system.profile&lt;br/&gt;
true&lt;br/&gt;
profiling level=&lt;br/&gt;
0&lt;br/&gt;
setting level to 2&lt;/p&gt;
{ &quot;was&quot; : 0, &quot;slowms&quot; : 100, &quot;ok&quot; : 1 }
&lt;p&gt;find&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f1ee0ca17b5b6b96b6ec15d&quot;) }
&lt;p&gt;setting profiling level to 0&lt;/p&gt;
{ &quot;was&quot; : 2, &quot;slowms&quot; : 100, &quot;ok&quot; : 1 }
&lt;p&gt;db.system.profile.find()&lt;br/&gt;
{ &quot;ts&quot; : ISODate(&quot;2012-01-24T16:48:10.395Z&quot;), &quot;op&quot; : &quot;query&quot;, &quot;ns&quot; :&lt;br/&gt;
&quot;test.test&quot;, &quot;query&quot; : { }, &quot;nscanned&quot; : 1, &quot;nreturned&quot; : 1,&lt;br/&gt;
&quot;responseLength&quot; : 42, &quot;millis&quot; : 0, &quot;client&quot; : &quot;127.0.0.1&quot;, &quot;user&quot; :&lt;br/&gt;
&quot;&quot; }&lt;br/&gt;
{ &quot;ts&quot; : ISODate(&quot;2012-01-24T16:48:10.395Z&quot;), &quot;op&quot; : &quot;command&quot;, &quot;ns&quot; :&lt;br/&gt;
&quot;test.$cmd&quot;, &quot;command&quot; : &lt;/p&gt;
{ &quot;profile&quot; : 0 }
&lt;p&gt;, &quot;ntoreturn&quot; : 1,&lt;br/&gt;
&quot;responseLength&quot; : 58, &quot;millis&quot; : 0, &quot;client&quot; : &quot;127.0.0.1&quot;, &quot;user&quot; :&lt;br/&gt;
&quot;&quot; }&lt;br/&gt;
bye&lt;/p&gt;

&lt;p&gt;$ mongod --dbpath ./data/db4000 --port 4000 --logpath ./log/db4000.log&lt;br/&gt;
--fork --auth&lt;br/&gt;
$ bash test-profile.sh MongoDB shell version: 2.0.1&lt;br/&gt;
connecting to: 127.0.0.1:4000/test&lt;br/&gt;
dropping system.profile&lt;br/&gt;
true&lt;br/&gt;
profiling level=&lt;br/&gt;
0&lt;br/&gt;
setting level to 2&lt;/p&gt;
{ &quot;was&quot; : 0, &quot;slowms&quot; : 100, &quot;ok&quot; : 1 }
&lt;p&gt;find&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4f1ee0bd5f245c46ab557b47&quot;) }
&lt;p&gt;setting profiling level to 0&lt;/p&gt;
{ &quot;was&quot; : 2, &quot;slowms&quot; : 100, &quot;ok&quot; : 1 }
&lt;p&gt;db.system.profile.find()&lt;br/&gt;
bye&lt;/p&gt;</description>
                <environment>Mac OS X 10.7, 64-bit</environment>
        <key id="29029">SERVER-4754</key>
            <summary>Profiling silently fails with --auth</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="-1">Unassigned</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Jan 2012 17:00:34 +0000</created>
                <updated>Tue, 29 Jul 2014 19:53:06 +0000</updated>
                            <resolved>Wed, 21 May 2014 17:57:31 +0000</resolved>
                                    <version>2.0.1</version>
                                                    <component>Security</component>
                                        <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="591953" author="andreas.nilsson@10gen.com" created="Wed, 21 May 2014 17:58:11 +0000"  >&lt;p&gt;With the reduction of the localhost exception in 2.7.1 there will be no profilable options when running in --auth mode without users.&lt;/p&gt;</comment>
                            <comment id="586209" author="xgen-internal-githook" created="Fri, 16 May 2014 13:55:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;estolfo&apos;, u&apos;name&apos;: u&apos;Emily Stolfo&apos;, u&apos;email&apos;: u&apos;emily@mongodb.com&apos;}
&lt;p&gt;Message: Skip tests with 2.0 relying on profiling info until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4754&quot; title=&quot;Profiling silently fails with --auth&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4754&quot;&gt;&lt;del&gt;SERVER-4754&lt;/del&gt;&lt;/a&gt; is fixed&lt;br/&gt;
Branch: 1.x-stable&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-ruby-driver/commit/ff0457e1f2607ec4375bfbacb33dd728a61bbd91&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-ruby-driver/commit/ff0457e1f2607ec4375bfbacb33dd728a61bbd91&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="94241" author="schwerin" created="Thu, 1 Mar 2012 18:24:54 +0000"  >&lt;p&gt;After a little investigation, it appears that this problem is limited to the case where there are no users set up on the admin database, and so all connections from localhost are permitted.  In this scenario, the auth-check logic creates a read context for verifying that there are no users in the &quot;admin&quot; database, and this context has the unfortunate problem of clearing the curOp&apos;s &quot;_dbprofile&quot; level, which controls whether or not the op gets profiled at the end.&lt;/p&gt;

&lt;p&gt;A solution could be to set the _dbprofile to the max value seen while processing the operation, but a more satisfying solution may have to wait.&lt;/p&gt;</comment>
                            <comment id="86768" author="auto" created="Thu, 9 Feb 2012 02:31:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@10gen.com&apos;}
&lt;p&gt;Message: Skip test_profiling_info until &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4754&quot; title=&quot;Profiling silently fails with --auth&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-4754&quot;&gt;&lt;del&gt;SERVER-4754&lt;/del&gt;&lt;/a&gt; is fixed&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-python-driver/commit/2ef3059ad3a98e3de1b29e86c82e448364332aa9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-python-driver/commit/2ef3059ad3a98e3de1b29e86c82e448364332aa9&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="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="19927">SERVER-3454</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="25170">SERVER-4335</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="25170">SERVER-4335</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14538" name="test-profile.sh" size="370" author="jesse@mongodb.com" created="Tue, 24 Jan 2012 17:00:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Feb 2012 02:31:20 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 39 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="10021"><![CDATA[OS X]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>andreas.nilsson</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrofyn:</customfieldvalue>

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

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

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