[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: |
Mark Wielaard |
Subject: |
[bugs #9331] URLStreamHandler does not correcly parse filenames as URL |
Date: |
Thu, 01 Jul 2004 19:47:33 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Galeon/1.3.15 (Debian package 1.3.15-2) |
This mail is an automated notification from the bugs tracker
of the project: classpath.
/**************************************************************************/
[bugs #9331] Latest Modifications:
Changes by:
Mark Wielaard <address@hidden>
'Date:
Thu 07/01/04 at 23:44 (Europe/Amsterdam)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Assigned to | None | mark
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Thanks. Committed as follows:
2004-07-01 Mark Wielaard <address@hidden>
Reported by Roman Kennke <address@hidden> (bug #9331)
* java/net/URLStreamHandler.java (parseURL): When url file part
doesn't contain a '/' just ignore context.
/**************************************************************************/
[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/04 at 09:52
Severity: 5 - Average
Resolution: Fixed
Assigned to: mark
Status: Closed
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.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Thu 07/01/04 at 23:44 By: mark
Thanks. Committed as follows:
2004-07-01 Mark Wielaard <address@hidden>
Reported by Roman Kennke <address@hidden> (bug #9331)
* java/net/URLStreamHandler.java (parseURL): When url file part
doesn't contain a '/' just ignore context.
-------------------------------------------------------
Date: Mon 06/14/04 at 10:21 By: rabbit78
sorry for not beeing logged in during posting. Please CC me in follow-ups:
address@hidden
File Attachments
-------------------
-------------------------------------------------------
Date: Mon 06/14/04 at 09:52 Name: URLStreamHandler.java.patch Size: 682B
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,
Mark Wielaard <=