[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #9331] URLStreamHandler does not correcly parse filenames as URL
From: |
anonymous |
Subject: |
[bugs #9331] URLStreamHandler does not correcly parse filenames as URL |
Date: |
Mon, 14 Jun 2004 05:53:54 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Epiphany/1.0.6 |
This mail is an automated notification from the bugs tracker
of the project: classpath.
/**************************************************************************/
[bugs #9331] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9331>
Project: classpath
Submitted by: 0
On: Mon 06/14/2004 at 05:52
Severity: 5 - Average
Resolution: None
Assigned to: None
Status: Open
Platform Version: None
Summary: URLStreamHandler does not correcly parse filenames as URL
Original Submission: I found, that java.net.URLStreamHandler does not
correctly parse filenames such as "mapping.xml" as URLs. Some applications do
such things, like Castor (here I found the error). The problem is, that
URLStreamHandler.parseURL looks for "/" and does not check, if a "/" is found.
In the case that there is no "/" invalid values are passed to
java.lang.String.substring.
The attached patch should solve this problem.
File Attachments
-------------------
-------------------------------------------------------
Date: Mon 06/14/2004 at 05:52 Name: URLStreamHandler.java.patch Size: 682KB
By: None
solves the error
http://savannah.gnu.org/bugs/download.php?item_id=9331&item_file_id=1403
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9331>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bugs #9331] URLStreamHandler does not correcly parse filenames as URL,
anonymous <=