[SERVER-42009] Forbid creation of collections with namespace names containing a $ Created: 28/Jun/19  Updated: 29/Oct/23  Resolved: 14/Feb/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.4

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: execution_intern_2019
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-10926 NamespaceString inconsistent on allow... Closed
Gantt Dependency
has to be done after SERVER-45292 fix isMetadataDifferent logic in chun... Closed
Problem/Incident
is caused by SERVER-39524 remove NamespaceString::virtualized()... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-10-07, Execution Team 2019-12-02, Execution Team 2019-12-16, Execution Team 2020-01-13, Execution Team 2020-01-27, Execution Team 2020-02-10, Execution Team 2020-02-24
Participants:
Linked BF Score: 50

 Description   

SERVER-39524 removed some checks that collection names (including the database part) cannot contain a "$". This is a behavior change compared to earlier versions of MongoDB, resulting in potential crashes in mixed version replica sets.



 Comments   
Comment by Githook User [ 11/Feb/20 ]

Author:

{'username': 'GeertBosch', 'name': 'Geert Bosch', 'email': 'geert.bosch@mongodb.com'}

Message: SERVER-42009 Forbid creation of collections with namespace names containing a $
Branch: master
https://github.com/mongodb/mongo/commit/9f5c2fc32800564f889d0f6b95e9ee40c6365f51

Comment by Eric Milkie [ 30/Dec/19 ]

The remaining failure looks to be view-related and is not something I can easily fix; I'm leaving this with Geert for further diagnosis.

Comment by Githook User [ 26/Dec/19 ]

Author:

{'name': 'Eric Milkie', 'email': 'milkie@mongodb.com', 'username': 'milkie'}

Message: Revert "SERVER-42009 Forbid creation of collections with namespace names containing a $"

This reverts commit 44f55a88eccf6bb152f4d9fa251e2948855d38fc.
Branch: master
https://github.com/mongodb/mongo/commit/f0ac73db58e84b2d5a05b9cb072841817edcc327

Comment by Eric Milkie [ 26/Dec/19 ]

This ticket is no longer blocked on SERVER-45292. However, there is still a problem with views on databases with $ characters in their names.

Comment by Githook User [ 26/Dec/19 ]

Author:

{'name': 'Eric Milkie', 'email': 'milkie@mongodb.com', 'username': 'milkie'}

Message: SERVER-42009 Forbid creation of collections with namespace names containing a $

This reverts commit c49f502693c6512784a7cb1a3238b68895e81d63.
Branch: master
https://github.com/mongodb/mongo/commit/44f55a88eccf6bb152f4d9fa251e2948855d38fc

Comment by Githook User [ 20/Dec/19 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: Revert "SERVER-42009 Forbid creation of collections with namespace names containing a $"

This reverts commit 7371def1d5e065f77cfc7f0499cf96b3d6412d67.
Branch: master
https://github.com/mongodb/mongo/commit/c49f502693c6512784a7cb1a3238b68895e81d63

Comment by Githook User [ 16/Dec/19 ]

Author:

{'name': 'Geert Bosch', 'email': 'geert.bosch@mongodb.com', 'username': 'GeertBosch'}

Message: SERVER-42009 Forbid creation of collections with namespace names containing a $
Branch: master
https://github.com/mongodb/mongo/commit/7371def1d5e065f77cfc7f0499cf96b3d6412d67

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