[SERVER-72535] Sharded clusters allow creating the 'admin', 'local', and 'config' databases with alternative casings Created: 05/Jan/23 Updated: 29/Oct/23 Resolved: 13/Jan/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 4.2.0, 4.4.0, 5.0.0, 6.0.0 |
| Fix Version/s: | 4.2.24, 4.4.19, 5.0.15, 6.3.0-rc0, 6.0.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jordi Serra Torrens | Assignee: | Jordi Serra Torrens |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v6.2, v6.0, v5.0, v4.4, v4.2
|
||||||||
| Steps To Reproduce: |
|
||||||||
| Sprint: | Sharding EMEA 2023-01-23 | ||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
The 'admin', 'local' and 'config' databases are special databases within the system. Users can not create them. However, it is possible for a user to create them with an alternative casing because these checks on _configsvrCreateDatabase will not match the alternative casings.. This can lead to those databases being incorrectly added to 'config.databases'. |
| Comments |
| Comment by Githook User [ 20/Jan/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: (cherry picked from commit ab4d1bf2ff349a82c67a09aba9452ed54d673069) |
| Comment by Githook User [ 20/Jan/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: |
| Comment by Githook User [ 16/Jan/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: (cherry picked from commit 93dba70eb3d2f94e8afb076da9482854b97be397) |
| Comment by Githook User [ 16/Jan/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: (cherry picked from commit 93dba70eb3d2f94e8afb076da9482854b97be397) |
| Comment by Githook User [ 13/Jan/23 ] |
|
Author: {'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}Message: |