-
Type: Bug
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.4
-
Component/s: None
-
None
-
Query
-
ALL
-
Query 2017-10-02
A string search or comparison query like the following fails to return any documents that contains special (unprintable?) characters:
Comparison: { "string": "substring ���콻�� substring" } Search: { "string": /.*substring.*/i }
Example document:
{ "_id" : ObjectId("593708460121722b9463f7a1"), "string" : "substring ���콻�� substring" }
This causes me to be unable to directly find such documents in my database, which is very annoying. If you wonder why, from time to time such special characters can occur in user-generated data in my DB. This is not a bug and by design / allowed.
The original document is saved using the C driver - if you copy and paste it from here to insert into a database the bug will not show as the unprintable characters seem to become UTF-8 character which are fine (e.g. there are no issues when searching a string with just Chinese in it).
- is related to
-
SERVER-12204 Buffer::readUTF8String in bson_validate.cpp should validate utf8
- Closed