<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:14:43 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-2272] mongoc_server_description_t tags and compressors improperly reinitialized</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2272</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Whenever a mongoc_server_description_t struct is reset, it zeroes all fields that are declared after &quot;set_name&quot;. This makes &quot;tags&quot; and &quot;compressors&quot; invalid. If the server reports any tags or compressors in its ismaster reply then these fields are set correctly, otherwise they remain invalid.&lt;/p&gt;

&lt;p&gt;The solution is to avoid the hack of zeroing all fields declared after set_name. Factor out a function that explicitly resets each field, and call that function from mongoc_server_description_init and mongoc_server_description_reset.&lt;/p&gt;</description>
                <environment></environment>
        <key id="425906">CDRIVER-2272</key>
            <summary>mongoc_server_description_t tags and compressors improperly reinitialized</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Sep 2017 22:38:32 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:28 +0000</updated>
                            <resolved>Fri, 15 Sep 2017 22:23:34 +0000</resolved>
                                                    <fixVersion>1.8.1</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1699033" author="xgen-internal-githook" created="Sat, 14 Oct 2017 16:18:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2272&quot; title=&quot;mongoc_server_description_t tags and compressors improperly reinitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2272&quot;&gt;&lt;del&gt;CDRIVER-2272&lt;/del&gt;&lt;/a&gt; avoid err in BSON_STATIC_ASSERT&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/dddc3fe4cca44f162a66670d522068bbb436b006&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/dddc3fe4cca44f162a66670d522068bbb436b006&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1697359" author="xgen-internal-githook" created="Thu, 12 Oct 2017 16:37:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2272&quot; title=&quot;mongoc_server_description_t tags and compressors improperly reinitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2272&quot;&gt;&lt;del&gt;CDRIVER-2272&lt;/del&gt;&lt;/a&gt; properly reinit server description&lt;br/&gt;
Branch: debian&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/14b679ca11083152360aae48cfb9cff801e706d2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/14b679ca11083152360aae48cfb9cff801e706d2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1675857" author="xgen-internal-githook" created="Mon, 18 Sep 2017 20:14:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2272&quot; title=&quot;mongoc_server_description_t tags and compressors improperly reinitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2272&quot;&gt;&lt;del&gt;CDRIVER-2272&lt;/del&gt;&lt;/a&gt; properly reinit server description&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a09540c704f74bf99481854b0d809a6880cd21a9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a09540c704f74bf99481854b0d809a6880cd21a9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1674608" author="xgen-internal-githook" created="Fri, 15 Sep 2017 22:28:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;ajdavis&apos;, &apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2272&quot; title=&quot;mongoc_server_description_t tags and compressors improperly reinitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2272&quot;&gt;&lt;del&gt;CDRIVER-2272&lt;/del&gt;&lt;/a&gt; properly reinit server description&lt;br/&gt;
Branch: r1.8&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/14b679ca11083152360aae48cfb9cff801e706d2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/14b679ca11083152360aae48cfb9cff801e706d2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1673134" author="jesse" created="Thu, 14 Sep 2017 18:19:23 +0000"  >&lt;p&gt;If you used a read pref with tags and disconnected and reconnected, it&apos;s &lt;b&gt;possible&lt;/b&gt; the driver could crash. The addition of &quot;compressors&quot; to the end of the mongoc_server_description_t in 1.8.0 adds more risk.&lt;/p&gt;</comment>
                            <comment id="1672980" author="ramon.fernandez" created="Thu, 14 Sep 2017 16:14:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: u&apos;ajdavis&apos;, &apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message:&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2272&quot; title=&quot;mongoc_server_description_t tags and compressors improperly reinitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2272&quot;&gt;&lt;del&gt;CDRIVER-2272&lt;/del&gt;&lt;/a&gt; skip cursor test for now&lt;br/&gt;
Branch:master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/f1ea83b3d48f3691e7fa042bfec703762df79937&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/f1ea83b3d48f3691e7fa042bfec703762df79937&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1672202" author="jesse" created="Wed, 13 Sep 2017 19:06:40 +0000"  >&lt;p&gt;Another example:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_power8_ubuntu1604_test_latest_replica_set_noauth_sasl_nossl_154c7202d256ab3c6fff22becf1481c53a137cc1_17_09_13_16_44_57/0?type=T&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_power8_ubuntu1604_test_latest_replica_set_noauth_sasl_nossl_154c7202d256ab3c6fff22becf1481c53a137cc1_17_09_13_16_44_57/0?type=T&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="427586">PHPC-1012</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="428031">CDRIVER-2286</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|ht6erb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>