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

Test NamespaceString object with db name and empty collection name

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Fully Compatible
    • Service Arch 2024-01-22, Service Arch 2024-02-05
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None