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

Test NamespaceString object with db name and empty collection name

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-01-22, Service Arch 2024-02-05
    • 1

    Description

      For empty collection name, the NamespaceString constructor creates ns string with an dot character at the end of the string, for example, `NamespaceString("test", "")`, the `_ns` will be "test.".

      We should keep the same rule for NamespaceStringUtil when deserialize NamespaceString object with db name and empty collection name (see example code). Otherwise, we have the risk to break some downstream systems.

      Attachments

        Activity

          People

            dominic.hernandez@mongodb.com Dominic Hernandez
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: