[SERVER-3730] Illegal key names allowed in $set command Created: 31/Aug/11 Updated: 11/Jul/16 Resolved: 21/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | 1.8.2, 2.0.0-rc0 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alvin Richards (Inactive) | Assignee: | Tony Hannan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
See also Problem: The following statement is allowed > db.test.insert( {"x":1}) , {$set:{$set:1}}) Per the naming rules http://www.mongodb.org/display/DOCS/Legal+Key+Names ... a $ field name is illegal. Reproduce: Workaround: |
| Comments |
| Comment by Tony Hannan [ 21/Sep/11 ] |
|
Commit comment above was supposed to say "Disallow $-fields in modifier ops" |
| Comment by auto [ 21/Sep/11 ] |
|
Author: {u'login': u'TonyGen', u'name': u'Tony Hannan', u'email': u'tony@10gen.com'}Message: |