Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.0
-
None
-
Win 7 x64
JDK 1.6.0 25
-
Regression
Description
Camel-http4 does not support http proxy configuration for HTTPS (https4:// endpoints).
Scenario 1:
Camel – HTTP --> Proxy – HTTPS4 --> Destination
http.proxyHost & http.proxyPort are specified and recognized:
String _authUsername="WS_P2P_INTERNAL";
String _authPassword="WS_P2P_INTERNAL";
from("servlet:///proxy?matchOnUriPrefix=true")
.removeHeader(Exchange.HTTP_URI)
.removeHeader(Exchange.HTTP_PATH)
.removeHeader(Exchange.HTTP_QUERY)
.to("https4://aupdc-osb01d:9002/P2P_Creditors/P2P_CreditorWS?wsdl&authUsername="_authUsername"&authPassword="_authPassword"&x509HostnameVerifier=AllowAllVerifier&proxyAuthHost=aupdc00-revprx01t&proxyAuthPort=9001");
Getting exception:
java.lang.IllegalStateException: Scheme 'http' not registered.
at org.apache.http.conn.scheme.SchemeRegistry.getScheme(SchemeRegistry.java:71)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127)
Attaching the whole log - http_exception.log
Scenario 2:
Camel – HTTPS --> Proxy – HTTPS4 --> Destination
Camel does not seem top recognize and accept https.proxyHost and https.proxyPort settings:
getContext().getProperties().put("https.proxyHost", "aupdc00-revprx01d");
getContext().getProperties().put("https.proxyPort", "9001");