<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:17 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>[JAVA-441] In BasicBSONCallback treat a Symbol as such</title>
                <link>https://jira.mongodb.org/browse/JAVA-441</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The Ruby driver can save and retrieve a BSON Symbol if the saved document is modified via JVM langauges that wrap the Java driver, the Symbol would be replaced with a String.&lt;/p&gt;

&lt;p&gt;To allow retrieving of Bson Symbols I would suggest this:&lt;/p&gt;

&lt;p&gt;_put( name , new Symbol(v) );&lt;/p&gt;

&lt;p&gt;I have patched and jar&apos;ed my fork and my tests in JRuby do save and retrieve a Ruby Symbol.&lt;/p&gt;

&lt;p&gt;I am not in a position to check the other JVM languages though, sorry.&lt;/p&gt;</description>
                <environment>JVM languages</environment>
        <key id="23142">JAVA-441</key>
            <summary>In BasicBSONCallback treat a Symbol as such</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="guyboertje">Guy Boertje</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Oct 2011 07:33:42 +0000</created>
                <updated>Fri, 4 Nov 2016 18:24:42 +0000</updated>
                            <resolved>Fri, 4 Nov 2016 18:24:42 +0000</resolved>
                                    <version>2.6.5</version>
                                                    <component>BSON</component>
                                        <votes>2</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1426547" author="jeff.yemin" created="Fri, 4 Nov 2016 18:24:42 +0000"  >&lt;p&gt;It&apos;s far too late now to change this, as it would break existing users expectations, but note that the Document class introduced in the 3.0 driver preserves the Symbol type.  See &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/8799770704adfcfea47ff6703db2ec6d9a42be9f/bson/src/test/unit/org/bson/codecs/DocumentCodecSpecification.groovy#L79-L79&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/8799770704adfcfea47ff6703db2ec6d9a42be9f/bson/src/test/unit/org/bson/codecs/DocumentCodecSpecification.groovy#L79-L79&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="493685" author="g-r-t" created="Wed, 5 Feb 2014 13:42:41 +0000"  >&lt;p&gt;+1 from me - this is essential for lossless reporting of type.&lt;/p&gt;

&lt;p&gt;Note that patching that line to &lt;/p&gt;

&lt;p&gt;    public void gotSymbol( String name , String v )&lt;/p&gt;
{
        _put( name , new Symbol( v ) );
    }

&lt;p&gt;is not enough, you also need to add an entry for it in com.mongodb.util.JSONSerializers.addCommonSerializers, e.g.&lt;/p&gt;

&lt;p&gt;        serializer.addObjectSerializer(Symbol.class, new ToStringSerializer());&lt;/p&gt;


&lt;p&gt;Cheers,&lt;/p&gt;

&lt;p&gt;Graham.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrhbo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14691</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>