[SERVER-39748] test_only IDL parameters can be invoked with "--setParameter enableTestCommands=0" Created: 21/Feb/19  Updated: 29/Oct/23  Resolved: 22/Feb/19

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson 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 2019-02-25
Participants:

 Description   

The server can start like this:

./mongod --auth --setParameter trafficRecordingDirectory=/data/db/job0/mongorunner/traffic_recording --setParameter AlwaysRecordTraffic=notARealPath --setParameter enableTestCommands=0

But this will (correctly) fail:

./mongod --auth --setParameter trafficRecordingDirectory=/data/db/job0/mongorunner/traffic_recording --setParameter AlwaysRecordTraffic=notARealPath
BadValue: Bad value for parameter "AlwaysRecordTraffic": setParameter: 'AlwaysRecordTraffic' is only supported with 'enableTestCommands=true'
try '/home/sajack/mongo/mongod --help' for more information



 Comments   
Comment by Githook User [ 22/Feb/19 ]

Author:

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

Message: SERVER-39748 Fix inspection of enableTestCommands
Branch: master
https://github.com/mongodb/mongo/commit/e52798e022f0c46624e6ddebbbc17200d7cc6a80

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