[SERVER-75743] Test NamespaceString object with db name and empty collection name Created: 05/Apr/23 Updated: 23/Jan/24 Resolved: 23/Jan/24 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sophia Tan | Assignee: | Dominic Hernandez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | ntdi_nice_to_have | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Service Arch 2024-01-22, Service Arch 2024-02-05 |
| Participants: | |
| Story Points: | 1 |
| Description |
|
For empty collection name, the NamespaceString constructor creates ns string with an dot character at the end of the string, for example, `NamespaceString("test", "")`, the `_ns` will be "test.". We should keep the same rule for NamespaceStringUtil when deserialize NamespaceString object with db name and empty collection name (see example code). Otherwise, we have the risk to break some downstream systems. |
| Comments |
| Comment by Githook User [ 22/Jan/24 ] |
|
Author: {'name': 'Dominic', 'email': 'dominic.hernandez@mongodb.com', 'username': 'dom-hernandez'}Message: GitOrigin-RevId: 22828ad760161cf6ce844c78bcf0d034d213887b |