[JAVA-1070] driver doesn't allow null characters in field values Created: 06/Jan/14  Updated: 02/Apr/16  Resolved: 09/Jan/14

Status: Closed
Project: Java Driver
Component/s: BSON
Affects Version/s: 2.11.3
Fix Version/s: 2.11.4

Type: Bug Priority: Major - P3
Reporter: Sam Perman Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: cs, regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to JAVA-891 Document fields accept NULL characters Closed

 Description   

See JAVA-891

The java driver recently started prohibiting null characters in field values. It looks like this change was unintentional. This is blocking deployment of the upgraded java driver.



 Comments   
Comment by Githook User [ 09/Jan/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1070: Restricted NULL Unicode character checks to cstring, so that a normal value string can contain one
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/54df215d0834c0560bb0531d375089cf3567d2ef

Comment by Githook User [ 09/Jan/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1070: Restricted NULL Unicode character checks to cstring, so that a normal value string can contain one
Branch: 2.11.x
https://github.com/mongodb/mongo-java-driver/commit/cc055a5c40f2ffa21ff790be2e46323a77d57ace

Comment by Githook User [ 09/Jan/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1070: Restricted NULL Unicode character checks to cstring, so that a normal value string can contain one

Conflicts:
src/main/org/bson/BasicBSONEncoder.java
src/test/com/mongodb/DBCollectionTest.java
src/test/org/bson/BasicBSONEncoderTest.java
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c82ea87e811aa946f4db5f31b7cfe93e1ec356a1

Comment by Jeffrey Yemin [ 06/Jan/14 ]

This is a regression introduced in JAVA-891

Generated at Thu Feb 08 08:53:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.