[SERVER-81616] Fix NamespaceString with DatabaseName constructor Created: 02/Oct/23 Updated: 29/Oct/23 Resolved: 04/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathis Bessa | Assignee: | Mathis Bessa |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Service Arch 2023-10-16 | ||||||||
| Participants: | |||||||||
| Description |
|
Discovered while testing NamespaceString::kEmpty. It seems today that there is a flaw if we call the NamespaceString constructor that takes in a DatabaseName. This is because if we have an empty `collection` parameter we do not check for it and add a `.` period symbol when we should not.
|
| Comments |
| Comment by Githook User [ 04/Oct/23 ] |
|
Author: {'name': 'Mathis Bessa', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}Message: |