<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:32 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-588] Cannot decode pointers to nil / cannot decode *ObjectID</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-588</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Decoding a nil into *time.Time returns an error, *time.Time is a pointer so it should be possible to decode nul from the database into a nil but this returns an error.&lt;/p&gt;



&lt;p&gt;Same thing happens with ObjectID and possible other default_value_decoders.&lt;/p&gt;

&lt;p&gt;In ObjectID though there is another issue too, not only it is not possible to decode into nil, but it does not even accept a pointer to ObjectID, the check/type assertion .(**bson.ObjectId) is totally missing form the code, while is present in TimeDecodeValue&lt;/p&gt;

&lt;p&gt;The affected file seems bson/bsoncodec/default_value_decoders.go&lt;/p&gt;</description>
                <environment></environment>
        <key id="613991">GODRIVER-588</key>
            <summary>Cannot decode pointers to nil / cannot decode *ObjectID</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="ddanna79">Delio D&amp;#39;Anna</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2018 11:48:20 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:24 +0000</updated>
                            <resolved>Tue, 4 Dec 2018 22:27:47 +0000</resolved>
                                    <version>0.0.15</version>
                                    <fixVersion>0.1.0</fixVersion>
                                    <component>BSON</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2080538" author="xgen-internal-githook" created="Tue, 4 Dec 2018 22:26:20 +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="2074484" author="kris.brandow" created="Wed, 28 Nov 2018 20:01:15 +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>
                            <comment id="2023643" author="kris.brandow" created="Thu, 4 Oct 2018 15:14:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ddanna79&quot; class=&quot;user-hover&quot; rel=&quot;ddanna79&quot;&gt;ddanna79&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This work will be covered by &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;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Kris&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <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|hr8m33:</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>