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

Audit code for usage of BSONObjBuilder.append(“ns”.. ) or append("$db"..)

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch
    • Service Arch 2023-12-11, Service Arch 2023-12-25
    • 5

    Description

      There are about 40+ call sites which use BSONObjBuilder.append(“ns”.. ) or append("$db"..). We need to audit those code to ensure the serialization of nss and db name is correct.

      When implementing this solution, we also need to ensure future bugs do not happen again. A possible solution could be to add clang-tidy checks to prevents incorrect serialization of nss/db.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: