You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Roland Schaer (JIRA)" <ji...@apache.org> on 2019/01/23 18:07:00 UTC
[jira] [Comment Edited] (HTTPCLIENT-1787) OSGiHttpRoutePlanner
should leverage target scheme while building proxy-ed uri
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16750285#comment-16750285 ]
Roland Schaer edited comment on HTTPCLIENT-1787 at 1/23/19 6:06 PM:
--------------------------------------------------------------------
[~jsedding]
I came across the same issue which seems to exist in OSGiHttpRoutePlanner [1]. While the connection to the target HTTPS URL works, the communication from client to proxy seems to be HTTP based only, while the proxy establishes a HTTPS connection to the target URL.
{{Client -- [HTTP] --> Proxy -- [HTTPS] --> Target}}
I assume a proxy configuration pointing to a proxy which only is reachable through HTTPS might not work.
https://github.com/apache/httpcomponents-client/blob/4.5.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/OSGiHttpRoutePlanner.java#L77
was (Author: rschaer):
[~jsedding]
I came across the same issue which seems to exist in OSGiHttpRoutePlanner [1]. While the connection to the target HTTPS URL works, the communication from client to proxy seems to be HTTP based only, while the proxy establishes a HTTPS connection to the target URL.
{{Client --[HTTP]--> Proxy --[HTTPS]--> Target}}
I assume a proxy configuration pointing to a proxy which only is reachable through HTTPS might not work.
https://github.com/apache/httpcomponents-client/blob/4.5.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/OSGiHttpRoutePlanner.java#L77
> OSGiHttpRoutePlanner should leverage target scheme while building proxy-ed uri
> ------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-1787
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1787
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 4.5.2
> Environment: OSGi
> Reporter: Srijan Bhatnagar
> Assignee: Julian Sedding
> Priority: Major
> Labels: stuck, volunteers-wanted
> Fix For: Stuck
>
>
> OSGiHttpRoutePlanner seems to always set the "http" scheme for the proxy-ed host instead of figuring it out from the original url.
> It should leverage target scheme while building proxy-ed uri.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org