Issue saving a document in the shell when the document contains a reference with the element [$db]

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.9.1
    • Affects Version/s: 1.9.0
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Steve Francia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: