You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/06/10 15:28:48 UTC
[jira] Assigned: (AXIS-2044) CommonsHTTPSender - Hardcoded Host Configuration Port
[ http://issues.apache.org/jira/browse/AXIS-2044?page=all ]
Davanum Srinivas reassigned AXIS-2044:
--------------------------------------
Assign To: Jayachandra Sekhara Rao Sunkara
> CommonsHTTPSender - Hardcoded Host Configuration Port
> -----------------------------------------------------
>
> Key: AXIS-2044
> URL: http://issues.apache.org/jira/browse/AXIS-2044
> Project: Axis
> Type: Bug
> Versions: 1.2
> Environment: all
> Reporter: Subbarao Ayyagari
> Assignee: Jayachandra Sekhara Rao Sunkara
>
> CommonsHTTPSender.java hardcodes the port to 80 for all protocols if no port is specified exclusively in the URL. Here is the code snippet that does that:
> protected HostConfiguration getHostConfiguration(HttpClient client,
> MessageContext context,
> URL targetURL) {
> TransportClientProperties tcp =
> TransportClientPropertiesFactory.create(targetURL.getProtocol()); // http or https
> int port = targetURL.getPort();
> boolean hostInNonProxyList =
> isHostInNonProxyList(targetURL.getHost(), tcp.getNonProxyHosts());
>
> HostConfiguration config = new HostConfiguration();
>
> if (port == -1) {
> port = 80; // even for https
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira