<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:06 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-4502] libmongoc expects connectionId in hello response to be int32</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4502</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;This is the root cause for the issue identified in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4499&quot; title=&quot;mongoc_server_description_handle_hello does not always set error when hello response is malformed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4499&quot;&gt;&lt;del&gt;CDRIVER-4499&lt;/del&gt;&lt;/a&gt;. &lt;tt&gt;mongoc_server_description_handle_hello&lt;/tt&gt; checks the type for the &lt;tt&gt;connectionId&lt;/tt&gt; field and fails if it&apos;s not an int64. Despite the command monitoring spec specifying the field as int32, both the server&apos;s IDL for &lt;tt&gt;hello&lt;/tt&gt; and mongohoused&apos;s response declare the field as int64. While this number is unlikely to exceed the 32-bit range, mongohoused always returns an int64 even when the number would fit in an int32. Given this, libmongoc should accept both int32 and int64 responses, while also ensuring that 64-bit values are handled accordingly (either by failing with an error message or by truncating the connection id so it fits in an int32.&lt;/p&gt;

&lt;p&gt;This was introduced by &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4085&quot; title=&quot;Add server connectionId to command monitoring events&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4085&quot;&gt;&lt;del&gt;CDRIVER-4085&lt;/del&gt;&lt;/a&gt; in 1.22.0, so a backport to 1.22 would be much appreciated.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2158188">CDRIVER-4502</key>
            <summary>libmongoc expects connectionId in hello response to be int32</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="andreas.braun@mongodb.com">Andreas Braun</assignee>
                                    <reporter username="andreas.braun@mongodb.com">Andreas Braun</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Oct 2022 06:10:46 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:59 +0000</updated>
                            <resolved>Mon, 17 Oct 2022 00:13:19 +0000</resolved>
                                    <version>1.22.0</version>
                                    <fixVersion>1.22.2</fixVersion>
                    <fixVersion>1.23.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4905868" author="xgen-internal-githook" created="Mon, 17 Oct 2022 00:09:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andreas Braun&apos;, &apos;email&apos;: &apos;alcaeus@users.noreply.github.com&apos;, &apos;username&apos;: &apos;alcaeus&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4502&quot; title=&quot;libmongoc expects connectionId in hello response to be int32&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4502&quot;&gt;&lt;del&gt;CDRIVER-4502&lt;/del&gt;&lt;/a&gt;: Handle int64 connectionId values in hello responses (#1121)&lt;br/&gt;
Branch: r1.23&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/609700d2cfda6878424550fef09e14a38b0d17f1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/609700d2cfda6878424550fef09e14a38b0d17f1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4905867" author="xgen-internal-githook" created="Mon, 17 Oct 2022 00:09:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andreas Braun&apos;, &apos;email&apos;: &apos;alcaeus@users.noreply.github.com&apos;, &apos;username&apos;: &apos;alcaeus&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4502&quot; title=&quot;libmongoc expects connectionId in hello response to be int32&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4502&quot;&gt;&lt;del&gt;CDRIVER-4502&lt;/del&gt;&lt;/a&gt;: Handle int64 connectionId values in hello responses (#1121)&lt;br/&gt;
Branch: r1.22&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/c9e0679f82977b6326a85509af3d882d8135daf6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/c9e0679f82977b6326a85509af3d882d8135daf6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4905866" author="xgen-internal-githook" created="Mon, 17 Oct 2022 00:08:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andreas Braun&apos;, &apos;email&apos;: &apos;alcaeus@users.noreply.github.com&apos;, &apos;username&apos;: &apos;alcaeus&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4502&quot; title=&quot;libmongoc expects connectionId in hello response to be int32&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4502&quot;&gt;&lt;del&gt;CDRIVER-4502&lt;/del&gt;&lt;/a&gt;: Handle int64 connectionId values in hello responses (#1121)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/5450450067e0c2bd031cd2736992f9f404aa99ee&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/5450450067e0c2bd031cd2736992f9f404aa99ee&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4902870" author="andreas.braun" created="Fri, 14 Oct 2022 08:49:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/1121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/1121&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2159087">PHPLIB-1023</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2295732">CDRIVER-4593</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2188290">DRIVERS-2503</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2162993">PHPC-2157</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2236176">CDRIVER-4557</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2157538">CDRIVER-4499</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1821040">CDRIVER-4085</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|i0wl08:</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>