[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22752] URLStreamHandler does not correcly parse filenames
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22752] URLStreamHandler does not correcly parse filenames as URL |
Date: |
16 Oct 2005 01:27:00 -0000 |
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.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-06-14
10:21 -------
sorry for not beeing logged in during posting. Please CC me in follow-ups:
address@hidden
------- Comment #2 from from-classpath at savannah dot gnu dot org 2004-07-01
23:44 -------
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22752
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22752] URLStreamHandler does not correcly parse filenames as URL,
gcc-bugzilla at gcc dot gnu dot org <=