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

Avoid too long db name in multitenancy environment

    • 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
    • 1

      In multitenancy environment, the db name on disk looks like "<tenantId><db>" if tenant prefix exists.  The length of db name should not only include db string size but also include the tenant prefix size and the "".  So, when we validate the db name length in mongod, we should calculate the db name size in the right way. 

      In this ticket, we should change the code of database_impl.cpp and database_name.h.  We should also change the jstest files in which the db name is too long (> 38 characters = 63 (max len) - 24 (tenant id string len) - 1).

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

              Created:
              Updated:
              Resolved: