<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:46 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-218] Incomplete documentation of reserved key words</title>
                <link>https://jira.mongodb.org/browse/JAVA-218</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I was debugging an error in our application where we were able to write documents successfully, but reading them resulted in an error. The error message was simply: &quot;false&quot;.&lt;/p&gt;

&lt;p&gt;I had to dig into the driver code to find that it was treating one of our fields as an internal error. Our document had a boolean called &quot;err&quot;, which happened to be false in this case... Mongo thought it was a server error and used &quot;false&quot; as the exception message.&lt;/p&gt;

&lt;p&gt;com.mongodb.ServerError:&lt;/p&gt;

&lt;p&gt;static String getMsg( BSONObject o , String def )&lt;/p&gt;
{
        Object e = o.get( &quot;$err&quot; );
        if ( e == null )
            e = o.get( &quot;err&quot; );
        if ( e == null )
            e = o.get( &quot;errmsg&quot; );
        if ( e == null )
            return def;
        return e.toString();
    }

&lt;p&gt;This contradicts &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Legal+Key+Names&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Legal+Key+Names&lt;/a&gt;, which only says that you can&apos;t start a key with &apos;$&apos; and can&apos;t use &apos;.&apos; in a key.&lt;/p&gt;

&lt;p&gt;From the same driver class, it looks like &quot;code&quot; is reserved too.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13748">JAVA-218</key>
            <summary>Incomplete documentation of reserved key words</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="permans">Sam Perman</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Nov 2010 14:34:30 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:50 +0000</updated>
                            <resolved>Fri, 12 Jul 2013 02:18:50 +0000</resolved>
                                    <version>2.3</version>
                                    <fixVersion>3.0.0</fixVersion>
                                    <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="869440" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:50 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="379487" author="jeff.yemin" created="Fri, 12 Jul 2013 02:17:53 +0000"  >&lt;p&gt;The driver no longer does this in the 3.0.x branch.  It only looks for an error document if the query failure bit is set.  See&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/jyemin/mongo-java-driver/commit/fef95a7fc3ab939544e168e8f6b747b2d6602a57&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/jyemin/mongo-java-driver/commit/fef95a7fc3ab939544e168e8f6b747b2d6602a57&lt;/a&gt;&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|hrh45z:</customfieldvalue>

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