<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:29 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>[CSHARP-324] Connect to mongod with auth fails</title>
                <link>https://jira.mongodb.org/browse/CSHARP-324</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;The driver uses buildInfo at connect time to get information about the server build and version, but buildInfo fails if mongod is running with auth.&lt;/p&gt;

&lt;p&gt;Note: the behavior of buildInfo changed in release 2.0 of the server. Before, the buildInfo command did not require credentials, but now it does.&lt;/p&gt;</description>
                <environment></environment>
        <key id="22246">CSHARP-324</key>
            <summary>Connect to mongod with auth fails</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Sep 2011 12:34:44 +0000</created>
                <updated>Fri, 27 May 2022 01:36:21 +0000</updated>
                            <resolved>Wed, 14 Sep 2011 18:12:21 +0000</resolved>
                                    <version>1.2</version>
                                    <fixVersion>1.2</fixVersion>
                                                        <votes>1</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="54074" author="rstam" created="Wed, 14 Sep 2011 18:17:00 +0000"  >&lt;p&gt;There will probably be a better fix to this issue in future versions of the driver. Either the server will change to not require credentials for buildInfo, or the driver will provide a way for you to supply credentials before calling Connect so that buildInfo can succeed.&lt;/p&gt;

&lt;p&gt;In the meantime, your code should be prepared to handle null values for server.BuildInfo when auth is on.&lt;/p&gt;
</comment>
                            <comment id="54072" author="rstam" created="Wed, 14 Sep 2011 18:12:21 +0000"  >&lt;p&gt;Fixed for now by simply setting the BuildInfo property of MongoServerInstance to null when connecting to a server that refused to return buildInfo data because auth is on.&lt;/p&gt;

&lt;p&gt;This is slightly backward breaking because if you are using auth you now no longer have access to the BuildInfo for the server.&lt;/p&gt;

&lt;p&gt;But at least you can connect... &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; &lt;/p&gt;</comment>
                            <comment id="54026" author="rstam" created="Wed, 14 Sep 2011 15:07:28 +0000"  >&lt;p&gt;Still investigating, but apparently there has been a change at the server where buildInfo now requires credentials when it didn&apos;t used to. Will have a fix  before long.&lt;/p&gt;</comment>
                            <comment id="54015" author="brlinton" created="Wed, 14 Sep 2011 14:46:49 +0000"  >&lt;p&gt;Just experienced this in a painful way....here&apos;s the exception we saw:&lt;/p&gt;

&lt;p&gt;MongoDB.Driver.MongoConnectionException: Unable to connect to server. ---&amp;gt; MongoDB.Driver.MongoCommandException: Command &apos;buildinfo&apos; failed: need to login (response: &lt;/p&gt;
{ &quot;errmsg&quot; : &quot;need to login&quot;, &quot;ok&quot; : 0.0 }
&lt;p&gt;)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="22208">SERVER-3837</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="24142">CSHARP-347</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrh8e7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14159</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>2.0</label>
            <label>2.1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>