You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/11/06 06:05:37 UTC

[jira] Created: (HARMONY-2075) [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections

[classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
---------------------------------------------------------------------------------

                 Key: HARMONY-2075
                 URL: http://issues.apache.org/jira/browse/HARMONY-2075
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


HttpURLConnection allows only 4 times of redirections. 
Here is the testcase:
public void testHttpURLConnection()
{
     URL url = new URL(
                "http://cvs.apache.org//maven-snapshot-repository//org//apache//maven//plugins//maven-resources-plugin//2.3-SNAPSHOT//maven-resources-plugin-2.3-20060725.131549-1.jar");
        URLConnection urlConnection = url.openConnection();
        InputStream in = urlConnection.getInputStream();
        in.close();
}

Result:
RI passes
Harmony fails          

-- 
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

        

[jira] Updated: (HARMONY-2075) [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2075?page=all ]

Leo Li updated HARMONY-2075:
----------------------------

    Attachment: patch.diff

Fixed. Thank you.
Here is the testcase.
I still use the outer site in it since aside from jetty I still need a DNS server to reproduce the problem internally.

> [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-2075
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2075
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Tim Ellison
>         Attachments: patch.diff, patch.diff
>
>
> HttpURLConnection allows only 4 times of redirections. 
> Here is the testcase:
> public void testHttpURLConnection()
> {
>      URL url = new URL(
>                 "http://cvs.apache.org//maven-snapshot-repository//org//apache//maven//plugins//maven-resources-plugin//2.3-SNAPSHOT//maven-resources-plugin-2.3-20060725.131549-1.jar");
>         URLConnection urlConnection = url.openConnection();
>         InputStream in = urlConnection.getInputStream();
>         in.close();
> }
> Result:
> RI passes
> Harmony fails          

-- 
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

        

[jira] Resolved: (HARMONY-2075) [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2075?page=all ]

Tim Ellison resolved HARMONY-2075.
----------------------------------

    Resolution: Fixed

Thanks Leo,

Patch applied to LUNI module at repo revision r472474.

Please check that the patch was applied as you expected.
All current LUNI tests pass ok, please send along a regression test when you have one.


> [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-2075
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2075
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Tim Ellison
>         Attachments: patch.diff
>
>
> HttpURLConnection allows only 4 times of redirections. 
> Here is the testcase:
> public void testHttpURLConnection()
> {
>      URL url = new URL(
>                 "http://cvs.apache.org//maven-snapshot-repository//org//apache//maven//plugins//maven-resources-plugin//2.3-SNAPSHOT//maven-resources-plugin-2.3-20060725.131549-1.jar");
>         URLConnection urlConnection = url.openConnection();
>         InputStream in = urlConnection.getInputStream();
>         in.close();
> }
> Result:
> RI passes
> Harmony fails          

-- 
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

        

[jira] Assigned: (HARMONY-2075) [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2075?page=all ]

Tim Ellison reassigned HARMONY-2075:
------------------------------------

    Assignee: Tim Ellison

> [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-2075
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2075
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Tim Ellison
>         Attachments: patch.diff
>
>
> HttpURLConnection allows only 4 times of redirections. 
> Here is the testcase:
> public void testHttpURLConnection()
> {
>      URL url = new URL(
>                 "http://cvs.apache.org//maven-snapshot-repository//org//apache//maven//plugins//maven-resources-plugin//2.3-SNAPSHOT//maven-resources-plugin-2.3-20060725.131549-1.jar");
>         URLConnection urlConnection = url.openConnection();
>         InputStream in = urlConnection.getInputStream();
>         in.close();
> }
> Result:
> RI passes
> Harmony fails          

-- 
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

        

[jira] Updated: (HARMONY-2075) [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2075?page=all ]

Leo Li updated HARMONY-2075:
----------------------------

    Attachment: patch.diff

Will somebody try the patch?
I will add a testcase if jetty is available.

> [classlib][luni]HttpURLConnection.getInputStream fails with too many redirections
> ---------------------------------------------------------------------------------
>
>                 Key: HARMONY-2075
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2075
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Attachments: patch.diff
>
>
> HttpURLConnection allows only 4 times of redirections. 
> Here is the testcase:
> public void testHttpURLConnection()
> {
>      URL url = new URL(
>                 "http://cvs.apache.org//maven-snapshot-repository//org//apache//maven//plugins//maven-resources-plugin//2.3-SNAPSHOT//maven-resources-plugin-2.3-20060725.131549-1.jar");
>         URLConnection urlConnection = url.openConnection();
>         InputStream in = urlConnection.getInputStream();
>         in.close();
> }
> Result:
> RI passes
> Harmony fails          

-- 
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