[jbosstools-issues] [JBoss JIRA] (JBIDE-14767) openshift-java-client: remove code that disables SNI checks with JDK7

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Thu Jun 6 05:15:55 EDT 2013


     [ https://issues.jboss.org/browse/JBIDE-14767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-14767:
-------------------------------------

    Git Pull Request: https://github.com/openshift/openshift-java-client/pull/59, https://github.com/jbosstools/jbosstools-openshift/pull/157  (was: https://github.com/openshift/openshift-java-client/pull/59)

    
> openshift-java-client: remove code that disables SNI checks with JDK7
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-14767
>                 URL: https://issues.jboss.org/browse/JBIDE-14767
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 4.1.0.Beta2
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>            Priority: Critical
>             Fix For: 4.1.0.Beta2
>
>         Attachments: ssl-handshake-error.png
>
>
> The UrlConnectionHttpClient tries to disable SNI checks that cause the HttpUrlConnection when handshaking SSL with hosts that dont have a valid hostname/alias:
> *javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name* (JBIDE-14760)
> !ssl-handshake-error.png!
> The openshift-java-client currently sets the system property (https://github.com/adietish/openshift-java-client/blob/master/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.java#L326):
> {code: title=UrlConnectionHttpClient}
> // JDK7 bug workaround
> System.setProperty(SYSPROP_ENABLE_SNI_EXTENSION, "false");
> {code}
> This "fix" is very bad since it turns these checks off in the whole JVM. Furthermore it has no effects since it would only affect SSL libraries that are loaded after that system property was set.
> So the only valid fix in Eclipse is to either connect to OpenShift Enterprise instances via IP-address or to turn SNI-checks off globally in *eclipse.ini/jbdevstudio.ini*:
> {code}
> -Djsse.enableSNIExtension=false
> {code}
> We have to remove the above code that set the system property.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list