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

Fix NamespaceString with DatabaseName constructor

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2023-10-16

      Discovered while testing NamespaceString::kEmpty.

      It seems today that there is a flaw if we call the NamespaceString constructor that takes in a DatabaseName.

      This is because if we have an empty `collection` parameter we do not check for it and add a `.` period symbol when we should not.

       

            Assignee:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Reporter:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: