Uploaded image for project: 'Pax Web'
  1. PAXWEB-404

Missing Defaults For clientauthwanted and clientauthneeded Cause NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1.0
    • Component/s: Web Container
    • Labels:
      None
    • Sprint:

      Description

      By default org.ops4j.pax.web.ssl.clientauthwanted and org.ops4j.pax.web.ssl.clientauthwanted have default values of empty string. If a user of pax web just configures org.osgi.service.http.secure.enabled without explicitly setting these values, there is a NullPointerException when attempting to start the secure connector as "" cannot be converted into Boolean:

      java.lang.NullPointerException
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:486)
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:72)
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.configure(ServerControllerImpl.java:272)
      at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:89)
      at org.ops4j.pax.web.service.internal.Activator$3.updated(Activator.java:234)
      at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:181)5:org.eclipse.equinox.cm:1.0.200.v20100520
      at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36)5:org.eclipse.equinox.cm:1.0.200.v20100520

      It would be good if appropriate default values could be chosen for these configuration items. As it is unlikely that the basic user would require client-side certificates, an appropriate value for these two configuration items is false.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                gcollins G
                Reporter:
                gcollins G
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: