<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:13 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-1350] Zeroer improvement causes primitive.Binary with no data to be zeroed to nil</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1350</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;It used to be the case that unmarshaling absent data for a field onto a primitive.Binary would set Data to []uint8{} but now it is being set to []uint8(nil).&lt;/p&gt;</description>
                <environment></environment>
        <key id="972672">GODRIVER-1350</key>
            <summary>Zeroer improvement causes primitive.Binary with no data to be zeroed to nil</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="13202">Works as Designed</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="eric.daniels@mongodb.com">Eric Daniels</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Oct 2019 02:54:21 +0000</created>
                <updated>Fri, 27 Oct 2023 13:16:31 +0000</updated>
                            <resolved>Fri, 25 Oct 2019 20:15:55 +0000</resolved>
                                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2495793" author="divjot.arora" created="Tue, 22 Oct 2019 17:46:07 +0000"  >&lt;p&gt;Ah, I was missing the &lt;tt&gt;omitempty&lt;/tt&gt; part. I think I understand this now. Before&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-990&quot; title=&quot;Implement Zeroer for primitive.Binary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-990&quot;&gt;&lt;del&gt;GODRIVER-990&lt;/del&gt;&lt;/a&gt; was done, the &lt;tt&gt;omitempty&lt;/tt&gt; tag didn&apos;t really mean anything for &lt;tt&gt;primitive.Binary&lt;/tt&gt;, or any other fields that are structs. This is because our BSON encoding/decoding machinery doesn&apos;t test if structs are &quot;empty&quot; unless they implement the &lt;tt&gt;bson.Zeroer&lt;/tt&gt; interface so&#160;a &lt;tt&gt;primitive.Binary&lt;/tt&gt; field with no subtype and no data would still be marshalled/unmarshalled. If skipping empty &lt;tt&gt;primitive.Binary&lt;/tt&gt; fields is not the desired behavior, the &lt;tt&gt;omitempty&lt;/tt&gt; tag shouldn&apos;t be used.&lt;/p&gt;</comment>
                            <comment id="2491018" author="eric.daniels@10gen.com" created="Sat, 19 Oct 2019 08:01:02 +0000"  >&lt;p&gt;So you need to be on master of driver and also do an omitempty tag on the binary field.&lt;/p&gt;</comment>
                            <comment id="2490911" author="divjot.arora" created="Fri, 18 Oct 2019 23:27:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.daniels&quot; class=&quot;user-hover&quot; rel=&quot;eric.daniels&quot;&gt;eric.daniels&lt;/a&gt; I couldn&apos;t reproduce this. Can you look it over my attempted repro at &lt;a href=&quot;https://play.golang.org/p/4-bVA89rx-U&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://play.golang.org/p/4-bVA89rx-U&lt;/a&gt;&#160;and let me know if my understanding of the ticket is wrong?&lt;/p&gt;</comment>
                    </comments>
                    <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|hvmguf:</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>