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 ji...@apache.org on 2004/05/06 15:25:56 UTC

[jira] Created: (AXIS-1349) HTTPSender doesn't with proxies in 1.2beta

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1349

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1349
    Summary: HTTPSender doesn't with proxies in 1.2beta
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Michael Bock

    Created: Thu, 6 May 2004 6:25 AM
    Updated: Thu, 6 May 2004 6:25 AM
Environment: JDK 1.4.2

Description:
When using a proxy, the first line in HTTP requests should contain the complete url including protocol and hostname. Since 1.2beta, the HTTPSender only sends the file component, so the request isn't understood by the proxy. 
This problem doesn't arise with older version (up to 1.2alpha).
It seems to be caused by refactoring the getSocket-Call in HTTPSender.writeToSocket to another location. So the parameter useFullURL is still false in 

        if (useFullURL.value) {
            header.append(tmpURL.toExternalForm());
        } ....

As a workaround, the CommonsHTTPSender may be used, which doesn't suffer from this problem.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1349) HTTPSender doesn't with proxies in 1.2beta

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Tom Jordahl
    Created: Mon, 4 Oct 2004 5:33 PM
       Body:
I was looking at this and as far as I can see (without testing) the useSocket boolean is set by the getSocket() call.  This call has moved
down in to the writeToSocket() line 382.  This is before the value is checked at line 398 (again in writeToSocket()).

Have you debugged this issue to verify that something was indeed broken by the code changes from Axis 1.1 (or 1.2 Beta) to now?

I don't have a proxy I can test with...

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1349?page=comments#action_53699

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1349

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1349
    Summary: HTTPSender doesn't with proxies in 1.2beta
       Type: Bug

     Status: Unassigned
   Priority: Critical

    Project: Axis
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Michael Bock

    Created: Thu, 6 May 2004 6:25 AM
    Updated: Mon, 4 Oct 2004 5:33 PM
Environment: JDK 1.4.2

Description:
When using a proxy, the first line in HTTP requests should contain the complete url including protocol and hostname. Since 1.2beta, the HTTPSender only sends the file component, so the request isn't understood by the proxy. 
This problem doesn't arise with older version (up to 1.2alpha).
It seems to be caused by refactoring the getSocket-Call in HTTPSender.writeToSocket to another location. So the parameter useFullURL is still false in 

        if (useFullURL.value) {
            header.append(tmpURL.toExternalForm());
        } ....

As a workaround, the CommonsHTTPSender may be used, which doesn't suffer from this problem.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS-1349) HTTPSender doesn't with proxies in 1.2beta

Posted by ax...@ws.apache.org.
Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Tue, 5 Oct 2004 3:08 AM

i've tested the current code via a proxy. works fine.

-- dims
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1349

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1349
    Summary: HTTPSender doesn't with proxies in 1.2beta
       Type: Bug

     Status: Closed
   Priority: Critical
 Resolution: CANNOT REPRODUCE

    Project: Axis
   Fix Fors:
             current (nightly)
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Michael Bock

    Created: Thu, 6 May 2004 6:25 AM
    Updated: Tue, 5 Oct 2004 3:08 AM
Environment: JDK 1.4.2

Description:
When using a proxy, the first line in HTTP requests should contain the complete url including protocol and hostname. Since 1.2beta, the HTTPSender only sends the file component, so the request isn't understood by the proxy. 
This problem doesn't arise with older version (up to 1.2alpha).
It seems to be caused by refactoring the getSocket-Call in HTTPSender.writeToSocket to another location. So the parameter useFullURL is still false in 

        if (useFullURL.value) {
            header.append(tmpURL.toExternalForm());
        } ....

As a workaround, the CommonsHTTPSender may be used, which doesn't suffer from this problem.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira