Details
Description
ApacheHttpClient unable to handle HTTPSProperties.PROPERTY_HTTPS_PROPERTIES therefore it is unable to use custom provided trust store (with self signed certificates for instance)
the same case: https://java.net/projects/jersey/lists/users/archive/2012-06/message/14
patch:
Index: engine/src/org/pentaho/di/trans/steps/rest/Rest.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- engine/src/org/pentaho/di/trans/steps/rest/Rest.java (revision 6edae5df20ffa33bafad4f47260646a49c7a9ee8) +++ engine/src/org/pentaho/di/trans/steps/rest/Rest.java (revision ) @@ -58,7 +58,6 @@ import com.sun.jersey.api.client.UniformInterfaceException; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter; -import com.sun.jersey.client.apache.ApacheHttpClient; import com.sun.jersey.client.apache.config.ApacheHttpClientConfig; import com.sun.jersey.client.apache.config.DefaultApacheHttpClientConfig; import com.sun.jersey.client.urlconnection.HTTPSProperties; @@ -241,7 +240,7 @@ private Client getClient() { - Client c = ApacheHttpClient.create( data.config ); + Client c = Client.create( data.config ); if ( data.basicAuthentication != null ) { c.addFilter( data.basicAuthentication ); }
Attachments
Issue Links
- is related to
-
PDI-9962 Add an option to the REST Client step in Spoon to support two-way SSL Communication
-
- Open
-
-
PDI-13846 REST step should have option to accept self-signed certs for HTTPS
-
- Open
-
-
PDI-14203 HTTP Client and HTTP Post steps uses End-of-Life library
-
- Closed
-
- relates to
-
PDI-11916 I want to be able to accept authentication information from the input stream for HTTP Client/Post and Rest Client steps
-
- Open
-