[SERVER-83431] Audit code for usage of BSONObjBuilder.append(“ns”.. ) or append("$db"..) Created: 18/Nov/23  Updated: 19/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: ntdi_must_have, ntdi_releasability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Sprint: Service Arch 2023-12-11, Service Arch 2023-12-25
Participants:
Story Points: 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.


Generated at Thu Feb 08 06:52:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.