<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:10 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-881] ObjectID should be quoted in bsoncore.Value&apos;s String() method</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-881</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;In x/bsonx/bsoncore/value.go, the function &lt;tt&gt;func (v Value) String() string&lt;/tt&gt; writes ObjectedIDs as&#160;{{&lt;/p&gt;
{&quot;$oid&quot;:%s}
&lt;p&gt;}}, but the %s should be quoted, like this:&#160;{{&lt;/p&gt;
{&quot;$oid&quot;:&quot;%s&quot;}
&lt;p&gt;}}.&lt;/p&gt;</description>
                <environment></environment>
        <key id="717364">GODRIVER-881</key>
            <summary>ObjectID should be quoted in bsoncore.Value&apos;s String() method</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="matthew.chiaravalloti@mongodb.com">Matthew Chiaravalloti</assignee>
                                    <reporter username="matthew.chiaravalloti@mongodb.com">Matthew Chiaravalloti</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Mar 2019 14:59:35 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:03 +0000</updated>
                            <resolved>Mon, 18 Mar 2019 18:35:00 +0000</resolved>
                                                    <fixVersion>1.0.1</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2184130" author="xgen-internal-githook" created="Mon, 18 Mar 2019 18:34:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Matthew Chiaravalloti&apos;, &apos;username&apos;: &apos;mattChiaravalloti&apos;, &apos;email&apos;: &apos;matthew.chiaravalloti@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-881&quot; title=&quot;ObjectID should be quoted in bsoncore.Value&amp;#39;s String() method&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-881&quot;&gt;&lt;del&gt;GODRIVER-881&lt;/del&gt;&lt;/a&gt;: Fix bsoncore.Value.String() ObjectID case&lt;/p&gt;

&lt;p&gt;Change-Id: Ia70fe98ce630bec046134e34098f1fa59e97fe0d&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/c72645a64800adf5455dd9ad9cb811c0bf7d34c1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/c72645a64800adf5455dd9ad9cb811c0bf7d34c1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2182141" author="matthew.chiaravalloti" created="Fri, 15 Mar 2019 19:41:43 +0000"  >&lt;p&gt;Update: I switched to converting from ast.Pipeline to []bson.Raw and now no longer rely on bsoncore.Value.String(). This is not longer a bug causing problems in the go driver; however, like Kris said, it is still a valid change!&lt;/p&gt;</comment>
                            <comment id="2181857" author="matthew.chiaravalloti" created="Fri, 15 Mar 2019 16:03:00 +0000"  >&lt;p&gt;Ooh, thank you for pointing that out. That&apos;s definitely better than the Unmarshal([]byte(Value.String())) way of doing it. Thanks!&lt;/p&gt;</comment>
                            <comment id="2181852" author="kris.brandow" created="Fri, 15 Mar 2019 16:01:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matthew.chiaravalloti&quot; class=&quot;user-hover&quot; rel=&quot;matthew.chiaravalloti&quot;&gt;matthew.chiaravalloti&lt;/a&gt;, I think we can do this, since the output is supposed to be extended JSON, however you might want to use &lt;tt&gt;bson.RawValue&lt;/tt&gt; which is a wrapper around &lt;tt&gt;bsoncore.Value&lt;/tt&gt; and provides an &lt;tt&gt;Unmarshal&lt;/tt&gt; method, which you should be able to use to turn it into a &lt;tt&gt;[]bson.D&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="2181808" author="matthew.chiaravalloti" created="Fri, 15 Mar 2019 15:31:35 +0000"  >&lt;p&gt;It&apos;s a (probably) temporary reliance. We used to translate SQL expressions into []bson.D, but are switching to use the new mongoast &lt;tt&gt;ast.Pipeline&lt;/tt&gt; type. Currently, there is a need to convert between ast.Pipeline and []bson.D, and the least amount of code to do that is to deparse the ast.Pipeline into a bsoncore.Value, and then bson.UnmarshalExtJSON that Value into a []bson.D. The Unmarshal function thats a []byte, so I use the Value.String() method to get that.&lt;/p&gt;</comment>
                            <comment id="2181792" author="jeff.yemin" created="Fri, 15 Mar 2019 15:19:28 +0000"  >&lt;p&gt;Why is BIC relying on the String value of an ObjectId like this?  I though String is intended to be informational, not normative?  Can BIC use the extended JSON support instead?&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|hugio7:</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>