[SERVER-74828] Ensure parseResourcePattern creates NamespaceString with tenantId Created: 14/Mar/23  Updated: 29/Oct/23  Resolved: 22/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-73112 Move NamespaceString constructors pri... Closed
Duplicate
is duplicated by SERVER-74833 parseResourcePattern should take in D... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-03-20, Server Serverless 2023-04-03
Participants:

 Description   

Until PM-2969 is completed, parseResourcePattern takes in a string for the db name and when it constructs a NamespaceString, it will construct it without a tenantId. This will fail once tenantIds are required to construct namespaces when multitenancySupport is enabled. This ticket is to make sure that the tenantId is extracted from the db name so the namespace can be constructed with it correctly. This is temporary, as PM-2969 should change the API take use DatabaseName objects instead.



 Comments   
Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-74828 Ensure parseResourcePattern creates NamespaceString with tenantId
Branch: master
https://github.com/mongodb/mongo/commit/a3e5630545acfa626c5f89830a33410f61980e02

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