<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:33 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-598] Cannot decode when any ObjectId field is null in database</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-598</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I&#160;don&apos;t know exactly in which alpha version this issue started, but when decoding the *DocumentResult into my&#160;Go struct, it always throws&#160;an error if I have&#160; &lt;br/&gt;
&quot;myIdAttribute&quot;: null in database.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;If struct is defined as *objectid.ObjectID, decoding fails. The error contains this relevant info: &quot;github.com/mongodb/mongo-go-driver/bson/objectid.ObjectID.IsZero called using nil *ObjectID pointer&quot;&lt;/li&gt;
	&lt;li&gt;If struct is defined using objectid.ObjectID (no pointer here), it also fails. The error message contains: &quot;cannot decode null into an ObjectID&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So basically in case&#160;any field in my database represents an ObjectID, and its value is null in the database,&#160;my entire decode operation fails.&lt;/p&gt;</description>
                <environment></environment>
        <key id="618129">GODRIVER-598</key>
            <summary>Cannot decode when any ObjectId field is null in database</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="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="bazaglia">Andre Bazaglia</reporter>
                        <labels>
                            <label>beta</label>
                            <label>neweng</label>
                    </labels>
                <created>Sun, 14 Oct 2018 00:25:27 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:23 +0000</updated>
                            <resolved>Tue, 4 Dec 2018 22:27:39 +0000</resolved>
                                    <version>0.0.16</version>
                                    <fixVersion>0.1.0</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2080537" author="xgen-internal-githook" created="Tue, 4 Dec 2018 22:26:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kris Brandow&apos;, &apos;email&apos;: &apos;kris@mongodb.com&apos;, &apos;username&apos;: &apos;skriptble&apos;}
&lt;p&gt;Message: Update codec system to use reflect.Value&lt;/p&gt;

&lt;p&gt;Add support for pointers to the BSON codec system. When doing an&lt;br/&gt;
interface lookup for a decoder, we now check if the type or a pointer to&lt;br/&gt;
the type implement the interface. If either one does, we return the&lt;br/&gt;
decoder for that interface.&lt;/p&gt;

&lt;p&gt;This change changes the ValueEncoder and ValueDecoder interfaces to use&lt;br/&gt;
reflect.Value instead of interface{}.&lt;/p&gt;

&lt;p&gt;Move the bson.D family of types into the primitive package.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-535&quot; title=&quot;Add support for pointers to reflect.Kind types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-535&quot;&gt;&lt;del&gt;GODRIVER-535&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-598&quot; title=&quot;Cannot decode when any ObjectId field is null in database&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-598&quot;&gt;&lt;del&gt;GODRIVER-598&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-588&quot; title=&quot;Cannot decode pointers to nil / cannot decode *ObjectID&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-588&quot;&gt;&lt;del&gt;GODRIVER-588&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-645&quot; title=&quot;lookupInterfaceDecoder does not ensure type is a pointer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-645&quot;&gt;&lt;del&gt;GODRIVER-645&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-662&quot; title=&quot;Change ValueEncoder and ValueDecoder to use reflect.Value instead of interface{}&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-662&quot;&gt;&lt;del&gt;GODRIVER-662&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-649&quot; title=&quot;Unmarshaling arrays and objects into bson.D yields bsonx types&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-649&quot;&gt;&lt;del&gt;GODRIVER-649&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-670&quot; title=&quot;Move D family of types from bson package to primitive package&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-670&quot;&gt;&lt;del&gt;GODRIVER-670&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: Idec68f74e354973160bd59f9f8fef009f026f943&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/d305fc0b97b199028c9a7def35f931224c448665&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/d305fc0b97b199028c9a7def35f931224c448665&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2074483" author="kris.brandow" created="Wed, 28 Nov 2018 20:01:05 +0000"  >&lt;p&gt;Code Review: &lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/435374&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/435374&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="599717">GODRIVER-535</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="599717">GODRIVER-535</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hr8m2v:</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>