Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8329213

Better validation for com.sun.security.ocsp.useget option

    XMLWordPrintable

Details

    Backports

      Description

        (Noticed this while doing JDK-8328638 backports)

        JDK-8328638 introduced a new boolean option, `com.sun.security.ocsp.useget`. We use the usual `Boolean.parseBoolean` to convert it from String to boolean value, which works correctly for `false` and `true` as boolean values. However, any string that is not `true` would be treated as `false`. Which means that if users mistype the value, they would not get the default behavior pre-JDK-8328638, but rather a fallback, non-default behavior.

        It would be preferable to validate the option range a bit better, and default to the correct value on any error.

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: