Handle all bool types in enableTestCommands validation handling

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2018-12-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

       

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

              Created:
              Updated:
              Resolved: