Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24589

Server allows storing documents with dotted field names

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.14, 2.6.12, 3.0.12, 3.2.7
    • Component/s: Storage
    • None
    • ALL

      As noted in PHPC-712, we encountered an edge case where a libmongoc API we were using for bulk writes did not validate a document before storage. This allowed users to store a document (via an insert or update/replace) containing a dotted field name.

      I understand that drivers should test for this before sending writes over the wire, but I would have expected the server to also validate a document before storage. Based on my testing, server versions from 2.4 through 3.2 do not complain about dotted field names.

      I've also noted the edge case where dotted field names need to be allowed for legacy index creation (i.e. insertions to system.indexes).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: