harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3217) [classlib][luni][netbeans] HTTP connect through proxy doesn't work
Date Wed, 21 Feb 2007 15:48:06 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mikhail Markov updated HARMONY-3217:
------------------------------------

    Attachment: H-3217.patch

Here is the patch for the code.

Fix description: before sending request, the HttpURLConnection should connect to http server
(the same is mentioned in API specification for URLConnection class description). No unit-tests
were added as not all users might have access to Internet to access external links.

> [classlib][luni][netbeans] HTTP connect through proxy doesn't work
> ------------------------------------------------------------------
>
>                 Key: HARMONY-3217
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3217
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, Classlib
>            Reporter: Vasily Zakharov
>         Attachments: H-3217.patch
>
>
> Here's a simple test reproducing the issue:
> public class Test {
>     public static void main(String args[]) throws Exception {
>         System.out.println(new java.net.URL("http://www.google.com")
>                 .openConnection().getInputStream());
>     }
> }
> The test should be run with operational proxy parameters specified in the command line,
like this:
> java -Dhttp.proxyHost=<host> -Dhttp.proxyPort=<port> Test
> Output on RI:
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@a90653
> Output on Harmony:
> java.io.FileNotFoundException: http://www.google.com
>         at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:878)
>         at Test.main(Test.java:3)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message