[SERVER-15622] New $prefix field (parents) not validated during update Created: 13/Oct/14  Updated: 25/Apr/16  Resolved: 12/Dec/14

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: 2.6.5, 2.8.0-rc0
Fix Version/s: 2.8.0-rc3

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Scott Hernandez (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-15621 Rename in update allows creating "$" ... Closed
Tested
Backwards Compatibility: Minor Change
Operating System: ALL
Steps To Reproduce:

monkey101:(git)mongo[master]/$ ./mongo
MongoDB shell version: 2.7.8-pre-
connecting to: test
> db.version()
2.7.8-pre-
> db.scott.drop()
true
> db.scott.insert({x:1})
WriteResult({ "nInserted" : 1 })
> db.scott.update({x:1},{$rename: {x: "$foo.bar"}})
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
> db.scott.find()
{ "_id" : ObjectId("543c1bb68752a4771eb3d208"), "$foo" : { "bar" : 1 } }

Participants:

 Description   

{_id: 1} + {$set:{"$bad.good":1}}



 Comments   
Comment by Githook User [ 12/Dec/14 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-15622: check parents in dotted paths during validation
Branch: master
https://github.com/mongodb/mongo/commit/f59a05c611d66a03c1fb8579b54569bfc2971374

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