harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6581) [classlib][luni] HttpURLConnectionImpl throws IAE if URL has space or special character in it
Date Fri, 16 Jul 2010 09:01:51 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889076#action_12889076
] 

Hudson commented on HARMONY-6581:
---------------------------------

Integrated in Harmony-select-1.5-head-linux-x86_64 #66 (See [http://hudson.zones.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/66/])
    Apply patch for HARMONY-6581: [classlib][luni] HttpURLConnectionImpl throws IAE if URL
has space or special character in it


> [classlib][luni] HttpURLConnectionImpl throws IAE if URL has space or special character
in it
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6581
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6581
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows and Linux
>            Reporter: Mohanraj Loganathan
>            Assignee: Regis Xu
>             Fix For: 5.0M15
>
>         Attachments: httpURLSpace.diff
>
>
> If the URL has space or special character in it, HttpURLConnectionImpl throws IllegalArgumentException
saying that "Argument must not be null"
> Consider the below test:
> 	public void test() {
> 		try {
> 			URL url = new URL("http://www.apache.org/page with space");
> 			HttpURLConnection conn = (HttpURLConnection)url.openConnection();
> 			conn.connect();
> 		} catch (MalformedURLException e) {
> 			// TODO Auto-generated catch block
> 			e.printStackTrace();
> 		} catch (IOException e) {
> 			// TODO Auto-generated catch block
> 			e.printStackTrace();
> 		}
> 	}

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