[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 |
| 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 |