[DOCS-9518] Docs for SERVER-22577: mmapv1 should not allow creation of database names containing $ Created: 05/Dec/16  Updated: 30/Oct/23  Resolved: 30/Oct/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Emily Hall Assignee: Andrew Feierabend (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-22577 mmapv1 should not allow creation of d... Closed
Participants:
Days since reply: 4 years, 15 weeks ago
Epic Link: DOCSP-1769

 Description   

Engineering Ticket Description:

This was first discovered by jonathan.abrahams in the linked ticket.

When we do an insert, a DatabaseCatalogEntry is created implicitly before validating the namespace string (batch_executor.cpp). The insert would fail after the DatbaseCatalogEntry is created.

For KVEngines, creating a DatabaseCatalogEntry is basically a noop (kv_storage_engine.cpp), so no harm is done.

For mmapv1, a data file with an invalid name would be created in (mmap_v1_database_catalog_entry.cpp). Subsequent calls to show dbs would require getting the list of data files and this invalid one will show up.



 Comments   
Comment by Githook User [ 30/Oct/19 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-9518 clarify dbname and collection naming restriction
Branch: v3.4
https://github.com/mongodb/docs/commit/d720b0b6638c6872805ac987ffaf1a87826271c8

Comment by Githook User [ 30/Oct/19 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-9518 clarify dbname and collection naming restriction
Branch: v4.0
https://github.com/mongodb/docs/commit/6ff075fad95b737fd381f60f6dee78aa7e00e24d

Comment by Githook User [ 30/Oct/19 ]

Author:

{'name': 'Andrew Feierabend', 'username': 'andf-mongodb', 'email': 'andrew.feierabend@mongodb.com'}

Message: DOCS-9518 clarify dbname and collection naming restriction
Branch: master
https://github.com/mongodb/docs/commit/950ee82cd9b49734429245eeb7cb11bff2a8bda7

Comment by Andrew Feierabend (Inactive) [ 30/Oct/19 ]

Provided deprecation notice for $ character beginning in 3.4, and provided links to naming restrictions doc for naming and renaming commands.

Comment by Kay Kim (Inactive) [ 27/Sep/19 ]

We'll only do this for 3.4-4.0

Generated at Thu Feb 08 07:58:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.