classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URLStreamHandler does not correcly parse filenames as URL


From: Guilhem Lavaux
Subject: Re: URLStreamHandler does not correcly parse filenames as URL
Date: Mon, 14 Jun 2004 17:58:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115

Roman Kennke wrote:
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?


It seems good to me. Could you write a changelog please ?

Cheers,

Guilhem.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]