[HARMONY-6581] [classlib][luni] HttpURLConnectionImpl throws IAE if URL has space or special character in it - ASF Jira
Public signup for this instance is
disabled
. Go to our
Self serve sign up page
to request an account. Report potential security issues
privately
Details
Type:
Bug
Status:
Closed
Priority:
Major
Resolution:
Fixed
Affects Version/s:
None
Fix Version/s:
5.0M15
Component/s:
Classlib
Labels:
None
Environment:
Windows and Linux
Patch Info:
Patch Available
Description
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(); }
Attachments
Attachments
Sort By Name
Sort By Date
Ascending
Descending
httpURLSpace.diff
15/Jul/10 04:54
6 kB
Mohanraj Loganathan
Activity
People
Assignee:
Regis Xu
Reporter:
Mohanraj Loganathan
Votes:
Vote for this issue
Watchers:
Start watching this issue
Dates
Created:
15/Jul/10 04:53
Updated:
19/Jul/10 17:47
Resolved:
16/Jul/10 05:50