On Mon, 2006-01-16 at 11:41 +0100, Sterzl Christian wrote:
> There has been a bug in ProxyManager I spotted in
> org.apache.lenya.net.ProxyManager#readConfig.
>
> If spaces are in the path an URISyntaxException is thrown. Thus I think
> it does make sense to add an replaceAll(" ", "%20") to the URI string.
>
> configFile = new File(new
> java.net.URI(ProxyManager.class.getClassLoader().getResource(fname).toSt
> ring().replaceAll(" ","%20")));
>
> What do you think. Do you think also other classes do have this bug?
ProxyManager.class.getClassLoader().getResource(fname) returns an URL
object, which _should_ be correctly url-encoded.
If it contains spaces, this is a bug in the classloader (or even lower)
and probably has something to do with
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4273532
It is recommended to not install java applications in directories
containing spaces in the path.
Josias
>
> Regards, Christian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]