[SERVER-3661] Specifying includeLocs returns objects instead of arrays when arrays are used for locations Created: 22/Aug/11  Updated: 11/Jul/16  Resolved: 29/Sep/11

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

Type: Bug Priority: Minor - P4
Reporter: Greg Studer Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Basically we make a copy of the location object to include, and when the location is an array object we create an object like

{ "0" : blah, "1" : foo }

, probably should be an array to minimize confusion.



 Comments   
Comment by auto [ 16/Nov/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: return arrays if arrays given SERVER-3661
Branch: v2.0
https://github.com/mongodb/mongo/commit/a695bea89c338f6f458abc258eee16f415edeae1

Comment by Greg Studer [ 29/Sep/11 ]

should also backport https://github.com/mongodb/mongo/commit/e86718e4d39f9ac290dcbfce789debffe067e583, fix for test case

Comment by auto [ 29/Sep/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: return arrays if arrays given SERVER-3661
Branch: master
https://github.com/mongodb/mongo/commit/898e3ae4e78d6a514171821541f688e327a4ed80

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