[SERVER-22206] $near query operator should validate its arguments Created: 15/Jan/16  Updated: 14/Apr/16  Resolved: 08/Feb/16

Status: Closed
Project: Core Server
Component/s: Geo, Querying
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Benjamin Murphy
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-19783 Query parser does not correctly handl... Closed
Related
related to SERVER-17234 geoNear command should return error f... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query F (02/01/16), Query 10 (02/22/16)
Participants:

 Description   

Invalid arguments are ignored silently. MongoDB should error out for invalid arguments, e.g. "maxDistance" instead of "$maxDistance".

{
	"loc" : {
		"$near" : {
			"$geometry" : {
				"coordinates" : [
					-77.446044,
					43.227321
				],
				"type" : "Point"
			},
			"maxDistance" : 0.0002525890376357666,
			"count" : 1
		}
	}
}


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