[SERVER-7996] Ability to disable checks for illegal collection names and keys Created: 20/Dec/12  Updated: 06/Dec/22  Resolved: 08/Dec/16

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

Type: New Feature Priority: Major - P3
Reporter: Steve Briskin (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: brs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-3943 $quote operator Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

Need to be able to create collections that start with "system", contain '$', and keys containing '.' and other characters that are illegal.



 Comments   
Comment by Scott Hernandez (Inactive) [ 20/Dec/12 ]

Tad, that just gets used to disable quotas for system collections... shhh... don't tell anyone. There is also a test to disable dropping system collections, but that can also be bypassed via a rename first. Anyway, not sure on exact use-case but most checks are in place for a good reason.

Comment by Tad Marshall [ 20/Dec/12 ]

There is code that checks for ".system." ... see namespacestring.h routine "special()" for example.

Comment by Scott Hernandez (Inactive) [ 20/Dec/12 ]

The driver enforces the document restrictions, not the server. Also, there is nothing keeping you from creating collections with "system" at the start, or anywhere in, the name.

The "$" is used for namespaces to indicate indexes and I can't think of a reason anyone would need to, or be able to, create a collection with it in there.

Either way you can easily escape/replace anything you want in the app/program code.

Generated at Thu Feb 08 03:16:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.