[SERVER-38676] Handle all bool types in enableTestCommands validation handling Created: 17/Dec/18  Updated: 29/Oct/23  Resolved: 18/Dec/18

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

Type: Bug Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2018-12-31
Participants:

 Description   

Handling of enableTestCommands to disable setParameters in sever_options_helpers.cpp does a strict compare against the string "1". Instead, it should use standard coersion rules to promote "true"/"false"/"1"/"0" to appropriate boolean values.

https://github.com/mongodb/mongo/blob/db3a8c4daddcefc4506c010699b1f6d3dce2c910/src/mongo/db/server_options_helpers.cpp#L296

 



 Comments   
Comment by Githook User [ 18/Dec/18 ]

Author:

{'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'}

Message: SERVER-38676 Handle 'true' in early processing of enableTestCommands
Branch: master
https://github.com/mongodb/mongo/commit/97fb988efa341f0a3e7bb9e250776352b4344c74

Generated at Thu Feb 08 04:49:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.