[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: SERVER-75743: Test NamespaceString object with db name and empty collection name (#18032)

GitOrigin-RevId: 22828ad760161cf6ce844c78bcf0d034d213887b
Branch: master
https://github.com/mongodb/mongo/commit/1ea1a4bafc02b35bf6c3868ace4fa25a4b0da990

Generated at Thu Feb 08 06:30:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.