<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:19 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-891] Document fields accept NULL characters</title>
                <link>https://jira.mongodb.org/browse/JAVA-891</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;&lt;tt&gt;new BasicDBObject(&quot;foo\0bar&quot;,&quot;baz&quot;)&lt;/tt&gt; doesn&apos;t have a valid document field name and should throw a &lt;tt&gt;IllegalArgumentException&lt;/tt&gt; like fields names containing a dot.&lt;/p&gt;</description>
                <environment></environment>
        <key id="82882">JAVA-891</key>
            <summary>Document fields accept NULL characters</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="ross@mongodb.com">Ross Lawley</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Jul 2013 15:06:30 +0000</created>
                <updated>Tue, 31 Mar 2015 20:09:42 +0000</updated>
                            <resolved>Fri, 2 Aug 2013 19:30:55 +0000</resolved>
                                    <version>2.11.2</version>
                                    <fixVersion>2.11.3</fixVersion>
                    <fixVersion>3.0.0</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="869396" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:42 +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="477791" author="jeff.yemin" created="Mon, 6 Jan 2014 18:46:02 +0000"  >&lt;p&gt;It&apos;ll be needed in both places.  Please create a new issue in the support project, and then we can link them.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="477786" author="permans" created="Mon, 6 Jan 2014 18:40:30 +0000"  >&lt;p&gt;Thanks... I filed &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1070&quot; title=&quot;driver doesn&amp;#39;t allow null characters in field values&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1070&quot;&gt;&lt;del&gt;JAVA-1070&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have a support contract so let me know if I should move it to our support project. This isn&apos;t currently breaking production but is blocking a release of the upgraded driver.&lt;/p&gt;</comment>
                            <comment id="477706" author="jeff.yemin" created="Mon, 6 Jan 2014 17:09:38 +0000"  >&lt;p&gt;Sorry, I responded too quickly.  I think you&apos;re right.  The change was too aggressive.  The intention was to catch additional use of cstrings, like in namespaces, etc, but all strings are affected.&lt;/p&gt;

&lt;p&gt;Would you like to report a new bug?  I don&apos;t want to re-open one that&apos;s already been released.  Please indicate the urgency for you as well.  Is this breaking a production application, for example?&lt;/p&gt;

</comment>
                            <comment id="477689" author="permans" created="Mon, 6 Jan 2014 16:53:09 +0000"  >&lt;p&gt;It used to work though... this change (linked above) is where values no longer could include null characters, as far as I can tell: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/5798e1b73cf801b898d71c81fd42f8437faaf267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/5798e1b73cf801b898d71c81fd42f8437faaf267&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="477644" author="jeff.yemin" created="Mon, 6 Jan 2014 16:05:10 +0000"  >&lt;p&gt;This is for keys, not values.  Keys can&apos;t contain NULL because BSON does not support it.&lt;/p&gt;</comment>
                            <comment id="477606" author="permans" created="Mon, 6 Jan 2014 15:22:09 +0000"  >&lt;p&gt;Why is the null character not allowed in field values?&lt;/p&gt;</comment>
                            <comment id="423485" author="auto" created="Thu, 12 Sep 2013 14:07:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;: Added an additional check for NULL character to BasicBSONEncoder.&lt;br/&gt;
Branch: 2.11.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/d677083a8ef13f0bbc01551e148b082f9a50ec66&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/d677083a8ef13f0bbc01551e148b082f9a50ec66&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="423465" author="auto" created="Thu, 12 Sep 2013 13:32:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;: Added an additional check for NULL character to BasicBSONEncoder.&lt;br/&gt;
Branch: 2.11.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2646dc2a12c7b03083faadb6281d02a6ba218d24&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2646dc2a12c7b03083faadb6281d02a6ba218d24&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="423464" author="auto" created="Thu, 12 Sep 2013 13:32:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Ensure document keys can&apos;t contain NULL character (&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;)&lt;br/&gt;
Branch: 2.11.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/ae7d3df5517887e8f8070ab836c53921b91b9dbf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/ae7d3df5517887e8f8070ab836c53921b91b9dbf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="394763" author="jeff.yemin" created="Fri, 2 Aug 2013 19:30:55 +0000"  >&lt;p&gt;Fixed in both branches&lt;/p&gt;</comment>
                            <comment id="394760" author="auto" created="Fri, 2 Aug 2013 19:29:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;: Added an additional check for NULL character to BasicBSONEncoder.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/5798e1b73cf801b898d71c81fd42f8437faaf267&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/5798e1b73cf801b898d71c81fd42f8437faaf267&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="394759" author="auto" created="Fri, 2 Aug 2013 19:28:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;: Check for null characters in all cstrings&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f21f03bf8a8e7b125fb698e2299997a09e0326e1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f21f03bf8a8e7b125fb698e2299997a09e0326e1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="394758" author="auto" created="Fri, 2 Aug 2013 19:27:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;: Move element name checks from BSONWriter to FieldNameValidator&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8152fa63e7bbdce27071d96f58a6c5da528d7e0d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8152fa63e7bbdce27071d96f58a6c5da528d7e0d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384763" author="auto" created="Fri, 19 Jul 2013 15:32:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #129 from rozza/&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ensure document keys can&apos;t contain NULL character (&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/429149ff22ae66183cc335e37770276587a5f80f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/429149ff22ae66183cc335e37770276587a5f80f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384762" author="auto" created="Fri, 19 Jul 2013 15:32:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #129 from rozza/&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ensure document keys can&apos;t contain NULL character (&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/429149ff22ae66183cc335e37770276587a5f80f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/429149ff22ae66183cc335e37770276587a5f80f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384761" author="auto" created="Fri, 19 Jul 2013 15:32:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Ensure document keys can&apos;t contain NULL character (&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-891&quot; title=&quot;Document fields accept NULL characters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-891&quot;&gt;&lt;del&gt;JAVA-891&lt;/del&gt;&lt;/a&gt;)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/afb915630edd9f2050bcbf01951067ae83ab0e2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/afb915630edd9f2050bcbf01951067ae83ab0e2e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="82866">DRIVERS-101</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="104827">JAVA-1070</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hrrqun:</customfieldvalue>

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