[JAVA-820] DBCollection Doesn't Check Keys Contained By Lists Created: 29/Apr/13 Updated: 25/Jun/13 Resolved: 18/Jun/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.11.2, 2.12.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Doug Jones | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
In DBCollection._checkKeys (pasted below), if the inner Object is an instance of List, it is not validated. It is possible, for instance, to have a List<BasicDBObject>> where the DBObjects in the list will not have their keys validated.
|
| Comments |
| Comment by auto [ 06/Jun/13 ] | ||||||||
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: | ||||||||
| Comment by auto [ 05/Jun/13 ] | ||||||||
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: | ||||||||
| Comment by auto [ 05/Jun/13 ] | ||||||||
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Modernized test for bad keys. Added commented-out test for | ||||||||
| Comment by auto [ 01/May/13 ] | ||||||||
|
Author: {u'date': u'2013-05-01T19:25:34Z', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Modernized test for bad keys. Added commented-out test for | ||||||||
| Comment by Jeffrey Yemin [ 30/Apr/13 ] | ||||||||
|
Confirmed. If you need a quick workaround, you can use BasicDBList, as this test passes:
|