test_only IDL parameters can be invoked with "--setParameter enableTestCommands=0"

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Security 2019-02-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Sara Golemon (Inactive)
            Reporter:
            Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: