[SERVER-38426] Disallow renameCollection to system collections Created: 05/Dec/18  Updated: 29/Oct/23  Resolved: 20/Mar/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: Xiangyu Yao (Inactive) Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-04-06
Participants:
Linked BF Score: 50

 Description   

The ".system.xxx" collections are usually for internal/special use so they have rules such as not allowing document validator, we should either check these rules while renaming to system collections or simply disallow renaming to system collection.



 Comments   
Comment by Githook User [ 20/Mar/20 ]

Author:

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

Message: SERVER-38426 Verify that renaming collections to system collections is disallowed and vice-versa
Branch: master
https://github.com/mongodb/mongo/commit/0773e877547ce58c28dceca5a49ecb113d61baf8

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