[SERVER-67] $set a value to null makes a collection unusable until the database is restarted (invalid parameter: expected an object) Created: 22/May/09  Updated: 12/Jul/16  Resolved: 22/May/09

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Michael Dirolf Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

python driver or shell


Participants:

 Description   

> db.foo.find()

{"_id" : "f86b90079a8f8ae183fa4b9b" , "a" : 5}

> db.foo.update(

{"a": 5}

, {"$set": {"b": null}})
> db.foo.find()
error:

{"$err" : "invalid parameter: expected an object"}

 Comments   
Comment by Aaron Staple [ 22/May/09 ]

d8e129c8ab3844903cd19ae565ab32faf0aadd59 fixes, tested in updatetests.cpp

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