harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohanraj Loganathan (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6581) [classlib][luni] HttpURLConnectionImpl throws IAE if URL has space or special character in it
Date Thu, 15 Jul 2010 04:53:49 GMT
[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


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