[SERVER-78263] Serialize db name in the listDatabase command response with SerializationContext Created: 21/Jun/23  Updated: 29/Oct/23  Resolved: 28/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-78261 Avoid too long db name in multitenanc... Closed
is depended on by SERVER-77537 Make DatabaseName::db() private Closed
Gantt Dependency
has to be done after SERVER-78844 Create a function to parse the Databa... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-06-26, Server Serverless 2023-07-10, Server Serverless 2023-07-24, Server Serverless 2023-08-07, Server Serverless 2023-08-21, Server Serverless 2023-09-04
Participants:
Story Points: 1

 Description   

The listDatabase command response has db field. Currently, db name is serialized to string based on feature flag which is checked by the DatabaseNameUtil::serialize function. 

In this ticket, we should thread the serialization context of command request through to reply so that we can serialize the db in reply based on the "expectPrefix" and "$tenant" fields of request. 

For the listDatabaseForAllTenants command, we should always exclude the tenant prefix from the db of responses. 



 Comments   
Comment by Githook User [ 27/Aug/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-78263 Serialize db name in the listDatabase command response with SerializationContext
Branch: master
https://github.com/mongodb/mongo/commit/c133c69c85e2edeeaec784c677782deab683d1dc

Comment by Githook User [ 23/Aug/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: Revert "SERVER-78263 Serialize db name in the listDatabase command response with SerializationContext"

This reverts commit 126f28cd8d340ada0ce7fc6afdc0e086a67621f7.
Branch: master
https://github.com/mongodb/mongo/commit/e06a349621bdac2756c2a5a2adf82f4181741be6

Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-78263 Serialize db name in the listDatabase command response with SerializationContext
Branch: master
https://github.com/mongodb/mongo/commit/126f28cd8d340ada0ce7fc6afdc0e086a67621f7

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