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

Server allows storing documents with dotted field names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: 2.4.14, 2.6.12, 3.0.12, 3.2.7
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: