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

Handle all bool types in enableTestCommands validation handling

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.7
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2018-12-31

    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

       

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: