$set a value to null makes a collection unusable until the database is restarted (invalid parameter: expected an object)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      python driver or shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > 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"}

            Assignee:
            Aaron Staple (Inactive)
            Reporter:
            Michael Dirolf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: