Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78263

Serialize db name in the listDatabase command response with SerializationContext

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • 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
    • 1

      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. 

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: