<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:40:02 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>[GODRIVER-3081] Empty slice no longer encoding/decoding as nil in 1.13.0 and 1.12.2</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-3081</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;Detailedstepstoreproducetheproblem%3F&quot;&gt;&lt;/a&gt;Detailed steps to reproduce the problem?&lt;/h3&gt;

&lt;p&gt;See attached test.go file. When inserting an empty slice, it would previously end up being decoded as nil but after &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2914&quot; title=&quot;Improvements in marshaling and compression&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2914&quot;&gt;&lt;del&gt;GODRIVER-2914&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/1323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/1323&lt;/a&gt; that now changed and it&apos;s now decoded as an empty slice.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/500319/500319_test.go&quot; title=&quot;test.go attached to GODRIVER-3081&quot;&gt;test.go&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Definitionofdone%3Awhatmustbedonetoconsiderthetaskcomplete%3F&quot;&gt;&lt;/a&gt;Definition of done: what must be done to consider the task complete?&lt;/h3&gt;

&lt;p&gt;The Release Notes should be updated to denote this change in 1.13.x and an option should be added to restore the old behavior. It should be removed from 1.12.x as I believe it&apos;s a breaking change.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;TheexactGoversionused%2Cwithpatchlevel%3A&quot;&gt;&lt;/a&gt;The exact Go version used, with patch level:&lt;/h3&gt;

&lt;p&gt;&lt;tt&gt;$ go version&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This is happening with 1.22rc1 and 1.21.5.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;TheexactversionoftheGodriverused%3A&quot;&gt;&lt;/a&gt;The exact version of the Go driver used:&lt;/h3&gt;

&lt;p&gt;&lt;tt&gt;$ go list -m go.mongodb.org/mongo-driver&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I tested with 1.31.0, 1.31.1, 1.12.0 and every commit in between to determine when it broke.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;DescribehowMongoDBissetup.LocalvsHosted%2Cversion%2Ctopology%2Cloadbalanced%2Cetc.&quot;&gt;&lt;/a&gt;Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.&lt;/h3&gt;

&lt;p&gt;N/A&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;Theoperatingsystemandversion%28e.g.Windows7%2COSX10.8%2C...%29&quot;&gt;&lt;/a&gt;The operating system and version (e.g. Windows 7, OSX 10.8, ...)&lt;/h3&gt;

&lt;p&gt;N/A&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;SecurityVulnerabilities&quot;&gt;&lt;/a&gt;&lt;b&gt;Security Vulnerabilities&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;If you&#8217;ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions &lt;a href=&quot;https://www.mongodb.com/docs/manual/tutorial/create-a-vulnerability-report/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2535408">GODRIVER-3081</key>
            <summary>Empty slice no longer encoding/decoding as nil in 1.13.0 and 1.12.2</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="qingyang.hu@mongodb.com">Qingyang Hu</assignee>
                                    <reporter username="james@getadmiral.com">James Hartig</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Jan 2024 18:27:07 +0000</created>
                <updated>Wed, 7 Feb 2024 18:18:52 +0000</updated>
                            <resolved>Thu, 1 Feb 2024 14:18:33 +0000</resolved>
                                    <version>1.13.0</version>
                    <version>1.12.2</version>
                    <version>1.13.1</version>
                                    <fixVersion>1.13.2</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="6076010" author="xgen-internal-githook" created="Wed, 7 Feb 2024 18:18:52 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Qingyang Hu&apos;, &apos;email&apos;: &apos;103950869+qingyang-hu@users.noreply.github.com&apos;, &apos;username&apos;: &apos;qingyang-hu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-3081&quot; title=&quot;Empty slice no longer encoding/decoding as nil in 1.13.0 and 1.12.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-3081&quot;&gt;&lt;del&gt;GODRIVER-3081&lt;/del&gt;&lt;/a&gt; Fix zero value detection for empty slices and maps. (#1546)&lt;br/&gt;
Branch: v1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/4cb576df96d2d4beadc42c369e03f2ed29bbf510&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/4cb576df96d2d4beadc42c369e03f2ed29bbf510&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="6059142" author="xgen-internal-githook" created="Thu, 1 Feb 2024 14:17:37 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Qingyang Hu&apos;, &apos;email&apos;: &apos;103950869+qingyang-hu@users.noreply.github.com&apos;, &apos;username&apos;: &apos;qingyang-hu&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-3081&quot; title=&quot;Empty slice no longer encoding/decoding as nil in 1.13.0 and 1.12.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-3081&quot;&gt;&lt;del&gt;GODRIVER-3081&lt;/del&gt;&lt;/a&gt; Fix zero value detection for empty slices and maps. (#1514)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/bdc38a6b3230d53c97c815004f22a7a656bf56a0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/bdc38a6b3230d53c97c815004f22a7a656bf56a0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5980746" author="dbeng-pm-bot" created="Tue, 2 Jan 2024 18:27:11 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=james%40getadmiral.com&quot; class=&quot;user-hover&quot; rel=&quot;james@getadmiral.com&quot;&gt;james@getadmiral.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="2394558">GODRIVER-2914</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="500319" name="test.go" size="1090" author="james@getadmiral.com" created="Tue, 2 Jan 2024 18:21:25 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_23812" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Assigned Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26446"><![CDATA[Go Drivers]]></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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. What would you like to communicate to the user about this feature?&lt;br/&gt;
2. Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3. Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2o6c4:</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>