<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:33 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-2917] Rest / HTTP interface not working with AUTH and command</title>
                <link>https://jira.mongodb.org/browse/SERVER-2917</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This bug happens both remote and localhost.&lt;/p&gt;

&lt;p&gt;To repro:&lt;br/&gt;
---------&lt;br/&gt;
1. Configure single server with --rest and --auth.&lt;br/&gt;
2. Add a user to the admin Database.&lt;br/&gt;
&amp;gt; use admin&lt;br/&gt;
&amp;gt; db.addUser(&quot;theadmin&quot;, &quot;anadminpassword&quot;)&lt;br/&gt;
3. Connect to HTTP UI from&lt;br/&gt;
3.a. local : &lt;a href=&quot;http://localhost:28017&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:28017&lt;/a&gt;&lt;br/&gt;
3.b. remote : &lt;a href=&quot;http://1.2.3.4:28017&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://1.2.3.4:28017&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;According to the documentation 3.a. should work and 3.b. should ask for authentication.&lt;br/&gt;
This works correctly.&lt;br/&gt;
&lt;a href=&quot;http://www.mongodb.org/display/DOCS/Http+Interface#HttpInterface-HTTPConsoleSecurity&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Http+Interface#HttpInterface-HTTPConsoleSecurity&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4. Use an admin-level command from the HTTP UI&lt;br/&gt;
4.a. local: &lt;a href=&quot;http://localhost:28017/listDatabases&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:28017/listDatabases&lt;/a&gt;&lt;br/&gt;
4.b. remote: &lt;a href=&quot;http://1.2.3.4:28017/listDatabases&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://1.2.3.4:28017/listDatabases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In both cases MongoDB is throwing the following exception:&lt;br/&gt;
&quot;error loading page: unauthorized db:admin lock type:-1 client:(NONE)&quot;&lt;/p&gt;

&lt;p&gt;In the case of 4.a, no authentication request is made, the http request simply fails.&lt;/p&gt;</description>
                <environment>Linux 64-bit</environment>
        <key id="15779">SERVER-2917</key>
            <summary>Rest / HTTP interface not working with AUTH and command</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="gatesvp">Gaetan Voyer-Perrault</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Apr 2011 00:15:17 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:42 +0000</updated>
                            <resolved>Wed, 19 Oct 2011 16:39:19 +0000</resolved>
                                    <version>1.8.1</version>
                                    <fixVersion>2.0.6</fixVersion>
                    <fixVersion>2.1.0</fixVersion>
                                    <component>HTTP Console</component>
                                        <votes>2</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="118089" author="auto" created="Thu, 10 May 2012 13:35:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Tony Hannan&apos;, u&apos;email&apos;: u&apos;tony@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2917&quot; title=&quot;Rest / HTTP interface not working with AUTH and command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2917&quot;&gt;&lt;del&gt;SERVER-2917&lt;/del&gt;&lt;/a&gt;: REST interface now authenticate user to db when user successfully authenticates to web server&lt;/p&gt;

&lt;p&gt;Signed-off-by: Eric Milkie &amp;lt;milkie@10gen.com&amp;gt;&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/77db8a50cfd1825a5848f908bf2860c5495ba528&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/77db8a50cfd1825a5848f908bf2860c5495ba528&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61425" author="auto" created="Wed, 19 Oct 2011 16:35:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;TonyGen&apos;, u&apos;name&apos;: u&apos;Tony Hannan&apos;, u&apos;email&apos;: u&apos;tony@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2917&quot; title=&quot;Rest / HTTP interface not working with AUTH and command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2917&quot;&gt;&lt;del&gt;SERVER-2917&lt;/del&gt;&lt;/a&gt;: REST interface now authenticate user to db when user successfully authenticates to web server&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/068cad4fbe97d9d004601cca08c5720c88acd8c9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/068cad4fbe97d9d004601cca08c5720c88acd8c9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="29429" author="seamusabshere" created="Thu, 21 Apr 2011 15:55:27 +0000"  >&lt;p&gt;Exact same situation, but through a proxy. 3.a works but 4.a doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;    error loading page: unauthorized db:admin lock type:-1 client:(NONE)&lt;/p&gt;

&lt;p&gt;... when I proxy 1.8.1 through apache2 (ubuntu 10.10) ...&lt;/p&gt;

&lt;p&gt;    &amp;lt;VirtualHost &lt;em&gt;default&lt;/em&gt;:80&amp;gt;&lt;br/&gt;
      ServerName x.y.z&lt;br/&gt;
      CustomLog /var/log/apache2/mongodb.access.log combined&lt;/p&gt;

&lt;p&gt;      ProxyPass / &lt;a href=&quot;http://localhost:28017/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:28017/&lt;/a&gt;&lt;br/&gt;
      &amp;lt;Location /&amp;gt;&lt;br/&gt;
        Order Deny,Allow&lt;br/&gt;
        Allow from all&lt;br/&gt;
        AuthName &quot;mongo&quot;&lt;br/&gt;
        AuthType Digest&lt;br/&gt;
        AuthDigestDomain /&lt;br/&gt;
        AuthDigestProvider file&lt;br/&gt;
        AuthUserFile /home/xyz/htdigest&lt;br/&gt;
        Require valid-user&lt;br/&gt;
      &amp;lt;/Location&amp;gt;&lt;/p&gt;

&lt;p&gt;      DocumentRoot /var/www&lt;br/&gt;
    &amp;lt;/VirtualHost&amp;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="23350">SERVER-4033</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="23968">SERVER-4128</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 21 Apr 2011 15:55:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 40 weeks, 6 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, 40 weeks, 6 days ago
                        </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>gatesvp</customfieldvalue>
            <customfieldvalue>seamusabshere</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp1o7:</customfieldvalue>

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

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

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