[JAVA-47] Case-Insenstive Regular Expression causes "EOO Before end of object" Created: 30/Oct/09  Updated: 29/Nov/09  Resolved: 30/Oct/09

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 0.11
Fix Version/s: 1.0

Type: Bug Priority: Major - P3
Reporter: Niko Schmuck Assignee: Eliot Horowitz (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

DBObject ref = new BasicDBObject();
ref.put("myfield", Pattern.compile(".myValue." , Pattern.CASE_INSENSITIVE));
DBCursor cur = coll.find(ref);

produces the following exception:

java.lang.RuntimeException: db error [EOO Before end of object]
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:324)
at com.mongodb.DBCursor._check(DBCursor.java:237)
at com.mongodb.DBCursor._hasNext(DBCursor.java:367)
at com.mongodb.DBCursor.hasNext(DBCursor.java:392)
...

when leaving out the case insensitive parameter on pattern construction the query works fine.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Nov/09 ]

released

Comment by Eliot Horowitz (Inactive) [ 30/Oct/09 ]

dup of JAVA-41

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