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

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

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

      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@mongodb.com Sara Golemon
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: