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

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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Service Arch 2023-12-11, Service Arch 2023-12-25
    • 5

      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.

            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            sophia.tan@mongodb.com Sophia Tan
            0 Vote for this issue
            1 Start watching this issue