Attempts to call .save() or .insert() on illegal namespaces should raise an exception

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • 12_01_17
    • Affects Version/s: 1.7.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Example:
      @con['tmp']['system.foo'].save({:a=>1})
      => BSON::ObjectId5088a0b7e382dd3b7800000a

      The server is printing the following:
      Wed Oct 24 19:16:04 [conn613] ERROR: attempt to insert in system namespace tmp.system.foo

      I think the ruby driver should convey this, rather than returning an ObjectID. However, given that it checks the return status of each .command() call, perhaps this needs to be moved to be a server issue if the server is not propagating the error - I haven't investigated it deeply, just tried something obscure and got this unexpected behavior.

            Assignee:
            Durran Jordan
            Reporter:
            Doug Hudson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: