[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
URLStreamHandler does not correcly parse filenames as URL
From: |
Roman Kennke |
Subject: |
URLStreamHandler does not correcly parse filenames as URL |
Date: |
Mon, 14 Jun 2004 12:59:39 +0200 (CEST) |
User-agent: |
SquirrelMail/1.5.0 |
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 patch should solve this problem. At least it does for me :-)
http://savannah.gnu.org/bugs/download.php?item_id=9331&item_file_id=1403
any comments on this?
Cheers, Roman
- URLStreamHandler does not correcly parse filenames as URL,
Roman Kennke <=