[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:
Related
related to SERVER-81419 Refactor API calls to NamespaceString... Closed
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: SERVER-81616 Fix NamespaceString with DatabaseName constructor
Branch: master
https://github.com/mongodb/mongo/commit/93e45afa49ae431d00929ba5af40c787c167e35a

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