[SERVER-47154] Split out namespace pattern matching logic from _checkCanCreateCollection() into userAllowedCreateNS() Created: 27/Mar/20  Updated: 29/Oct/23  Resolved: 27/May/20

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

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-48955 Do not allow user created collections... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-06-01
Participants:

 Description   

These two functions are both doing NamespaceString checks with subtle differences which check whether the namespace is valid. Instead of maintaining two different copies, we should consider consolidating them into one function.

DatabaseImpl::_checkCanCreateCollection()
userAllowedCreateNS()



 Comments   
Comment by Gregory Noma [ 18/Jun/20 ]

Githook never ran for this.

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-47154 Split out namespace pattern matching logic from _checkCanCreateCollection() into userAllowedCreateNS()
Branch: master
https://github.com/mongodb/mongo/commit/21ef00aa502d7b74e19bc3b6b76f285c9860da3e

Generated at Thu Feb 08 05:13:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.