-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.8.0
-
Component/s: Querying
-
None
-
Environment:Suse Linux Entreprise Server x86_64 10.3
-
ALL
Hello,
The valid UTF8 character \u0000 is not handled properly : the string is cut at this character. Mongo is probably interpreting it as a string terminating character.
Example :
MongoDB shell version: 1.8.0
connecting to: test
> db.test.save(
)
> db.test.findOne()
> db.test.findOne(
{text: /foo/})
{ "_id" : ObjectId("4e3bbbaa4e496a38200a6f81"), "text" : "foo" }> db.test.findOne(
{text: /bar/})
null
We use Mongo to log errors from various servers. We do not have any control on the string characters incoming and we have no workaround for this issue so far.
Thank you very much in advance for your feedback on this issue.
Cheers,
CH.
- duplicates
-
SERVER-1300 use memcmp, not strcmp for comparing BSON strings
- Closed