<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:51 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>[CXX-646] C++ driver does not connect to replica sets when all members specified</title>
                <link>https://jira.mongodb.org/browse/CXX-646</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;We&apos;re upgrading from 2.x to 3.0.4 and are having difficulty connecting to a fresh 3.0.4 replica set via the C++ 1.0.3 driver.  If the connection string contains just a single member of the set, connection/auth works perfectly, but if all replica set members are specified, auth fails.  Using either mongo::DBClientReplicaSet or mongo::ConnectionString::connect results in the same failure behavior.&lt;/p&gt;

&lt;p&gt;When multiple members of a set are specified, the driver does not detect that it&apos;s connecting to a Mongo 3 instance, and will attempt to use MONGO-CR instead of SCRAM-SHA1.  Tracing through the client code, the client is setting its minimum and maximum wireline versions to (0,0) instead of (0,3) when connecting to the 3.0.4 replica set, which then causes it to default to MONGO-CR as its authentication mechanism.  If we add code to detect the wireline version after making a connection (as is done by the driver when connecting to a single machine), the authentication type is set correctly and authentication succeeds.&lt;/p&gt;

&lt;p&gt;Are we doing something wrong or is this a defect in the driver?  FWIW, connecting to the same replica sets with the Python driver works as expected when all members are listed...&lt;/p&gt;

&lt;p&gt;A test executable is attached.  To build, update the property sheets with the correct locations for boost, mongo, openssl, and gmock.  Enable one of the two test methods DISABLED_TestConnectionReplicaSetAuth or DISABLED_TestConnectionReplicaSetConnectionStringAuth to reproduce the issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="224070">CXX-646</key>
            <summary>C++ driver does not connect to replica sets when all members specified</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="adam.midvidy">Adam Midvidy</assignee>
                                    <reporter username="sga">Steve Ahlgren</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Tue, 4 Aug 2015 17:11:35 +0000</created>
                <updated>Mon, 19 Oct 2015 18:23:46 +0000</updated>
                            <resolved>Fri, 16 Oct 2015 15:11:10 +0000</resolved>
                                    <version>legacy-1.0.3</version>
                                    <fixVersion>legacy-1.0.6</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1062869" author="xgen-internal-githook" created="Fri, 16 Oct 2015 15:10:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;amidvidy&apos;, u&apos;name&apos;: u&apos;Adam Midvidy&apos;, u&apos;email&apos;: u&apos;amidvidy@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-646&quot; title=&quot;C++ driver does not connect to replica sets when all members specified&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-646&quot;&gt;&lt;del&gt;CXX-646&lt;/del&gt;&lt;/a&gt; add evergreen configuration for running tests with authentication enabled&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/fd81a3515744ac9fc3ae50d4d13f864416d4e8bb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/fd81a3515744ac9fc3ae50d4d13f864416d4e8bb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1062868" author="xgen-internal-githook" created="Fri, 16 Oct 2015 15:10:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;amidvidy&apos;, u&apos;name&apos;: u&apos;Adam Midvidy&apos;, u&apos;email&apos;: u&apos;amidvidy@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-646&quot; title=&quot;C++ driver does not connect to replica sets when all members specified&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-646&quot;&gt;&lt;del&gt;CXX-646&lt;/del&gt;&lt;/a&gt; authenticate with SCRAM against 3.0+ replicaSets&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/b645a445ccee545d3bf0fbd554719f6d8d0924d7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/b645a445ccee545d3bf0fbd554719f6d8d0924d7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1062867" author="xgen-internal-githook" created="Fri, 16 Oct 2015 15:09:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;amidvidy&apos;, u&apos;name&apos;: u&apos;Adam Midvidy&apos;, u&apos;email&apos;: u&apos;amidvidy@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-646&quot; title=&quot;C++ driver does not connect to replica sets when all members specified&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-646&quot;&gt;&lt;del&gt;CXX-646&lt;/del&gt;&lt;/a&gt; use mongodb_auth_uri when available so we can authenticate&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/e64d267fc9f53fe1f7cc446b81223d43331b534f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/e64d267fc9f53fe1f7cc446b81223d43331b534f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1062866" author="xgen-internal-githook" created="Fri, 16 Oct 2015 15:09:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;amidvidy&apos;, u&apos;name&apos;: u&apos;Adam Midvidy&apos;, u&apos;email&apos;: u&apos;amidvidy@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-646&quot; title=&quot;C++ driver does not connect to replica sets when all members specified&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-646&quot;&gt;&lt;del&gt;CXX-646&lt;/del&gt;&lt;/a&gt; rewrite integration test fixtures to use ConnectionString for all connections&lt;br/&gt;
Branch: legacy&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/03a104709b9c3e4cbb9f5945a467ca90ed633d93&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/03a104709b9c3e4cbb9f5945a467ca90ed633d93&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1052603" author="adam.midvidy" created="Tue, 6 Oct 2015 15:44:44 +0000"  >&lt;p&gt;New pull request: &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/319&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/319&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This makes the necessary improvements to our test infrastructure so we can prevent future regressions like this from happening again.&lt;/p&gt;
</comment>
                            <comment id="997593" author="adam.midvidy" created="Wed, 5 Aug 2015 20:07:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/304&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/304&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="996259" author="adam.midvidy" created="Tue, 4 Aug 2015 17:18:43 +0000"  >&lt;p&gt;Thanks for the detailed report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sga&quot; class=&quot;user-hover&quot; rel=&quot;sga&quot;&gt;sga&lt;/a&gt;. From your description, this sounds like a bug in the driver. I will work on reproducing this issue and then I will follow up on this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="84545" name="MongoClientDefect.zip" size="7166" author="sga" created="Tue, 4 Aug 2015 17:11:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|hre4v3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="628">Platform 8 08/28/15</customfieldvalue>
    <customfieldvalue id="632">Platform 7 08/10/15</customfieldvalue>
    <customfieldvalue id="673">Platform 9 (09/18/15)</customfieldvalue>
    <customfieldvalue id="688">Platform A (10/09/15)</customfieldvalue>
    <customfieldvalue id="722">Platform B (10/30/15)</customfieldvalue>

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