dots allowed in field names when updating

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.1
    • Affects Version/s: 1.11
    • Component/s: None
    • None
    • Environment:
      OS X 10.6.7, Python 2.6.1, PyMongo 1.11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When saving a document for the first time, PyMongo correctly rejects documents whose keys contain dots (".").

      However, when updating a document (with either .save() or .update()), field names with dots are allowed through. Mongo 1.8.1 appears to store them fine, but it's impossible to query for documents using this field, since queries with dots in the spec field names are rejected (both by the mongo shell and PyMongo).

            Assignee:
            Bernie Hackett
            Reporter:
            Daniel Crosta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: