[SERVER-9066] Field names can be repeated in JavaScript when the same value is set multiple times Created: 21/Mar/13 Updated: 11/Jul/16 Resolved: 01/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, MapReduce |
| Affects Version/s: | 2.4.0 |
| Fix Version/s: | 2.4.2, 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ben Becker | Assignee: | Ben Becker |
| Resolution: | Done | Votes: | 0 |
| Labels: | javascript, mapreduce | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Steps To Reproduce: | Run attached 'mr_jsonly_test.js' script, then mongodump -d test -c jwc_test |
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
In When manipulating one of these arguments, some properties added to the argument appear in the result set with duplicate field names (when running with jsMode:false). http://groups.google.com/group/mongodb-user/browse_thread/thread/8dc58c951e26a085 |
| Comments |
| Comment by auto [ 01/Apr/13 ] |
|
Author: {u'date': u'2013-04-01T19:21:53Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}Message: |
| Comment by auto [ 01/Apr/13 ] |
|
Author: {u'date': u'2013-04-01T19:21:53Z', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}Message: |
| Comment by Ben Becker [ 30/Mar/13 ] |
|
Issue was that BSONHolder::_extra was an stl list, so there was nothing preventing duplicate entries. This happens when, for example, the same property is set multiple times on an object. The resulting BSON then contains repeated elements. |