[SERVER-3311] Issue saving a document in the shell when the document contains a reference with the element [$db] Created: 21/Jun/11  Updated: 12/Jul/16  Resolved: 22/Jun/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.9.0
Fix Version/s: 1.9.1

Type: Bug Priority: Major - P3
Reporter: Steve Francia Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

The following code results in this error.

db.sellers.find().forEach(function(seller)

{ db.sellers.save(seller); }

);

uncaught exception: field names cannot start with $ [$db]

I have signed the contributor agreement and issued a pull request for the patch to resolve this issue.
https://github.com/mongodb/mongo/pull/46

It affects versions mongo 1.8 and higher.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 22/Jun/11 ]

Thanks!

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