<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:12 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-406] Java driver does not accept empty keys</title>
                <link>https://jira.mongodb.org/browse/JAVA-406</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;which are perfect valid if using the shell: &lt;br/&gt;
&amp;gt; db.po.insert(&lt;/p&gt;
{&quot;&quot;:1}
&lt;p&gt;); &lt;br/&gt;
&amp;gt; db.po.insert(&lt;/p&gt;
{&quot;&quot;:2}
&lt;p&gt;); &lt;br/&gt;
&amp;gt; db.po.find(&lt;/p&gt;
{&quot;&quot;:1}
&lt;p&gt;); &lt;/p&gt;

{ &quot;_id&quot; : ObjectId(&quot;4e3940ff933089c859e4d4f9&quot;), &quot;&quot; : 1 } 
&lt;p&gt;error source: &lt;br/&gt;
    private void _checkKeys( DBObject o ) { &lt;br/&gt;
        for ( String s : o.keySet() ){ &lt;br/&gt;
            if ( s.contains( &quot;.&quot; ) ) &lt;br/&gt;
                throw new IllegalArgumentException( &quot;fields stored in &lt;br/&gt;
the db can&apos;t have . in them&quot; ); &lt;br/&gt;
            if ( s.charAt( 0 ) == &apos;$&apos; ) &lt;br/&gt;
                throw new IllegalArgumentException( &quot;fields stored in &lt;br/&gt;
the db can&apos;t start with &apos;$&apos;&quot; ); &lt;br/&gt;
            Object inner; &lt;br/&gt;
            if ( (inner = o.get( s )) instanceof DBObject ) &lt;/p&gt;
{ 
                _checkKeys( (DBObject)inner ); 
            }
&lt;p&gt; &lt;br/&gt;
        } &lt;br/&gt;
    } &lt;/p&gt;

&lt;p&gt; if ( s.charAt( 0 ) == &apos;$&apos; ) &lt;br/&gt;
should be: &lt;br/&gt;
if (s.startWith(&apos;$&apos; )) &lt;/p&gt;</description>
                <environment>linux / java 6</environment>
        <key id="20457">JAVA-406</key>
            <summary>Java driver does not accept empty keys</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="antoine">Antoine Girbal</assignee>
                                    <reporter username="rmuller">Ronald K. Muller</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Aug 2011 17:50:19 +0000</created>
                <updated>Wed, 10 Aug 2011 05:33:33 +0000</updated>
                            <resolved>Fri, 5 Aug 2011 06:53:17 +0000</resolved>
                                                    <fixVersion>2.6.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="46557" author="auto" created="Fri, 5 Aug 2011 07:26:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-406&quot; title=&quot;Java driver does not accept empty keys&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-406&quot;&gt;&lt;del&gt;JAVA-406&lt;/del&gt;&lt;/a&gt;: Java driver does not accept empty keys&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/6ee13e421d54ebb0324cd7569fa68038ff8b7be5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/6ee13e421d54ebb0324cd7569fa68038ff8b7be5&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|hrhbu7:</customfieldvalue>

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