[SERVER-5728] Regular Expression Query Limitations Created: 30/Apr/12 Updated: 11/Jul/16 Resolved: 01/Sep/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.0.1, 2.1.1 |
| Fix Version/s: | 2.3.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Cory Spencer | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, Mac OS X |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Querying MongoDB with a regular expression exceeding 32764 characters in length silently fails without returning any results or raising any errors. An example of this behaviour is as follows. Create a document in the mongo shell:
Querying for the document with a 32764 character regular expression will return a result as expected:
Querying for a document with a 32765 character regular expression fails with no errors nor results:
As per Eliot on the mongodb-user list: "That looks like the default pcre max size. |
| Comments |
| Comment by auto [ 01/Sep/12 ] |
|
Author: {u'date': u'2012-09-01T16:15:37-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}Message: Fixed buildbot test failure caused by |
| Comment by auto [ 01/Sep/12 ] |
|
Author: {u'date': u'2012-05-07T13:32:39-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}Message: Added assert when user tries to create a reqex query with size |