[SERVER-10786] Error on invalid query field names ($prefix) Created: 16/Sep/13  Updated: 28/Oct/15  Resolved: 16/Sep/13

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 2.4.0
Fix Version/s: 2.5.2

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

If an invalid field name is used in the query system then an error should occur.

Current:

> db.a.find({$a:1})
>

Expected:

> db.a.find({$a:1})
error: {
	"$err" : "bad query: BadValue unknown top level operator: $a",
	"code" : 16810
}



 Comments   
Comment by Scott Hernandez (Inactive) [ 16/Sep/13 ]

fixed with new matcher

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