<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:11:03 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>[CDRIVER-935] mongoc_client_set_ssl_opts should require SSL</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-935</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;A behavior change, but worth it: right now, including &quot;ssl=true&quot; in the URI means the driver connects to the server with SSL. Calling mongoc_client_set_ssl_opts without &quot;ssl=true&quot; does &lt;b&gt;not&lt;/b&gt;; the driver still uses a plain-text connection.&lt;/p&gt;

&lt;p&gt;Calling mongoc_client_set_ssl_opts should be synonymous with imply &quot;ssl=true&quot;.&lt;/p&gt;

&lt;p&gt;Already fixed in 1.2 for single-threaded clients, since mongoc_client_set_ssl_opts calls mongoc_topology_scanner_set_ssl_opts. Thus all scanner-node streams are SSL, and the client shares its streams with the scanner nodes.&lt;/p&gt;

&lt;p&gt;Not yet fixed for pooled clients, however. In fact, a pooled client on which you call mongoc_client_set_ssl_opts but don&apos;t include &quot;ssl=true&quot; won&apos;t work because (I expect) it will use SSL for scanner-node connections on its scanner thread, but plain-text connections for the clients.&lt;/p&gt;

&lt;p&gt;To complete this ticket, fix pooled client behavior when &quot;ssl=true&quot; is omitted but mongoc_client_set_ssl_opts &lt;b&gt;is&lt;/b&gt; called.&lt;/p&gt;</description>
                <environment></environment>
        <key id="234379">CDRIVER-935</key>
            <summary>mongoc_client_set_ssl_opts should require SSL</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Oct 2015 20:15:30 +0000</created>
                <updated>Mon, 8 May 2017 16:50:59 +0000</updated>
                            <resolved>Wed, 18 Nov 2015 03:08:17 +0000</resolved>
                                    <version>1.2.0</version>
                                    <fixVersion>1.2.1</fixVersion>
                    <fixVersion>1.3.0-rc0</fixVersion>
                                    <component>libmongoc</component>
                    <component>tls</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1091369" author="jesse" created="Wed, 18 Nov 2015 03:08:17 +0000"  >&lt;p&gt;Merged into &quot;master&quot; from 1.2 branch.&lt;/p&gt;</comment>
                            <comment id="1079596" author="xgen-internal-githook" created="Wed, 4 Nov 2015 18:46:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: Merge branch &apos;r1.2&apos;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;r1.2:&lt;br/&gt;
  post-release bump&lt;br/&gt;
  1.2.1 release&lt;br/&gt;
  update mallard2man.py from libbson&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-882&quot; title=&quot;Aggregate install instructions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-882&quot;&gt;&lt;del&gt;CDRIVER-882&lt;/del&gt;&lt;/a&gt; rearrange install guide&lt;br/&gt;
  remove link to legacy branch from README&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-933&quot; title=&quot;mongoc_ssl_opt_get_default changed in 1.2.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-933&quot;&gt;&lt;del&gt;CDRIVER-933&lt;/del&gt;&lt;/a&gt; note change in ssl opts behavior&lt;br/&gt;
  &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-935&quot; title=&quot;mongoc_client_set_ssl_opts should require SSL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-935&quot;&gt;&lt;del&gt;CDRIVER-935&lt;/del&gt;&lt;/a&gt; pooled clients require SSL if opts set&lt;br/&gt;
  print mongod command line opts before test&lt;br/&gt;
  evergreen on windows tests the wrong mongo version&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/47767cdee6b43522c8d666e8194239abd4558e3e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/47767cdee6b43522c8d666e8194239abd4558e3e&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1079588" author="xgen-internal-githook" created="Wed, 4 Nov 2015 18:46:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-935&quot; title=&quot;mongoc_client_set_ssl_opts should require SSL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-935&quot;&gt;&lt;del&gt;CDRIVER-935&lt;/del&gt;&lt;/a&gt; pooled clients require SSL if opts set&lt;/p&gt;

&lt;p&gt;In 1.1.x, all clients (pooled and single-threaded) required an SSL&lt;br/&gt;
connection to the server only if &quot;ssl=true&quot; was in the URI. In 1.2.0&lt;br/&gt;
this changed unintentionally (but beneficially) for single-threaded&lt;br/&gt;
clients: setting a single-threaded client&apos;s SSL options put the client&lt;br/&gt;
in SSL mode, even if &quot;ssl=true&quot; is omitted from the URI.&lt;/p&gt;

&lt;p&gt;Pooled clients, however, stopped working entirely if the options are&lt;br/&gt;
set but &quot;ssl=true&quot; is omitted. This patch fixes pooled clients and&lt;br/&gt;
tests the new behavior for both.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6860079b0e9cdbe21eeb8f83182e2c504c652077&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6860079b0e9cdbe21eeb8f83182e2c504c652077&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1074856" author="jesse" created="Fri, 30 Oct 2015 01:20:48 +0000"  >&lt;p&gt;This patch is now waiting to be merged into 1.3.&lt;/p&gt;</comment>
                            <comment id="1073567" author="jesse" created="Thu, 29 Oct 2015 01:25:48 +0000"  >&lt;p&gt;Fixed in 1.2.1.&lt;/p&gt;</comment>
                            <comment id="1073565" author="xgen-internal-githook" created="Thu, 29 Oct 2015 01:25:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-935&quot; title=&quot;mongoc_client_set_ssl_opts should require SSL&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-935&quot;&gt;&lt;del&gt;CDRIVER-935&lt;/del&gt;&lt;/a&gt; pooled clients require SSL if opts set&lt;/p&gt;

&lt;p&gt;In 1.1.x, all clients (pooled and single-threaded) required an SSL&lt;br/&gt;
connection to the server only if &quot;ssl=true&quot; was in the URI. In 1.2.0&lt;br/&gt;
this changed unintentionally (but beneficially) for single-threaded&lt;br/&gt;
clients: setting a single-threaded client&apos;s SSL options put the client&lt;br/&gt;
in SSL mode, even if &quot;ssl=true&quot; is omitted from the URI.&lt;/p&gt;

&lt;p&gt;Pooled clients, however, stopped working entirely if the options are&lt;br/&gt;
set but &quot;ssl=true&quot; is omitted. This patch fixes pooled clients and&lt;br/&gt;
tests the new behavior for both.&lt;br/&gt;
Branch: r1.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6860079b0e9cdbe21eeb8f83182e2c504c652077&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6860079b0e9cdbe21eeb8f83182e2c504c652077&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1061105" author="jesse" created="Thu, 15 Oct 2015 03:40:14 +0000"  >&lt;p&gt;Update mongoc_client_default_stream_initiator:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/ajdavis/mongo-c-driver/blob/5e4fa5ced838276fcbf0f49469d970455b2c68d6/src/mongoc/mongoc-client.c#L320-L320&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/ajdavis/mongo-c-driver/blob/5e4fa5ced838276fcbf0f49469d970455b2c68d6/src/mongoc/mongoc-client.c#L320-L320&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="234309">CDRIVER-933</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="236635">CDRIVER-970</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="381675">CDRIVER-2153</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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|hre0tr:</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="760">C Driver 2015Q2 sprint 9</customfieldvalue>
    <customfieldvalue id="781">C Driver 2015Q2 sprint 10</customfieldvalue>

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