<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:28 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-562] JSON decoding of an objectid returns error</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-562</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;if an ObjectID is part of a struct and this struct gets marshalled into json it gets converted into an array of integers, which is in line with the specification for json marshalling for an array of bytes. When the bytes are umnarshalled calling json.Unmarshal, however, the objectid.UnmarshalJSON method is called, which errors cause of the following lines:&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
m := make(map&lt;span class=&quot;error&quot;&gt;&amp;#91;string&amp;#93;&lt;/span&gt;string)&lt;br/&gt;
err := json.Unmarshal(b, &amp;amp;m)&lt;br/&gt;
if err != nil &lt;/p&gt;
{
&#160;&#160;&#160;&#160;return err
}
&lt;p&gt;&#160;&lt;br/&gt;
from line 85 of bson/objectid/objectid.go&lt;/p&gt;</description>
                <environment>Encountered in OSX and Linux but independent from any OS</environment>
        <key id="606188">GODRIVER-562</key>
            <summary>JSON decoding of an objectid returns error</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="go-community-user">Go Community User</assignee>
                                    <reporter username="ddanna79">Delio D&amp;#39;Anna</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Sep 2018 20:54:17 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:26 +0000</updated>
                            <resolved>Thu, 11 Oct 2018 20:08:31 +0000</resolved>
                                    <version>0.0.13</version>
                                    <fixVersion>0.0.16</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2030590" author="kris.brandow" created="Thu, 11 Oct 2018 20:07:12 +0000"  >&lt;p&gt;Code Review: &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/97&lt;/a&gt;&#160;and &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/98&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/98&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2030584" author="xgen-internal-githook" created="Thu, 11 Oct 2018 20:06:19 +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: Merge branches &apos;pr/97&apos; and &apos;pr/98&apos;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-590&quot; title=&quot;objectid.ObjectID should support regular JSON hex bytes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-590&quot;&gt;&lt;del&gt;GODRIVER-590&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-562&quot; title=&quot;JSON decoding of an objectid returns error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-562&quot;&gt;&lt;del&gt;GODRIVER-562&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: If800aceefac70ad6deb98411a012c32f6a30fa0e&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/97447040cabd95498a3f38bca806d50f76817c77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/97447040cabd95498a3f38bca806d50f76817c77&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2018082" author="ddanna79" created="Fri, 28 Sep 2018 20:01:15 +0000"  >&lt;p&gt;Just a note, not a fix, it seems to work if you use a pointer to an ObjectID&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="614100">GODRIVER-590</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|htyovb:</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>