[SERVER-24589] Server allows storing documents with dotted field names Created: 15/Jun/16  Updated: 14/Jul/16  Resolved: 15/Jun/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.4.14, 2.6.12, 3.0.12, 3.2.7
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-10987 Disallow inserting documents with inv... Backlog
Related
is related to PHPC-712 Driver should validate BSON documents... Closed
Operating System: ALL
Participants:

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



 Comments   
Comment by Ramon Fernandez Marina [ 15/Jun/16 ]

Duplicate of SERVER-10987.

Generated at Thu Feb 08 04:06:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.