You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by al...@dsl.ab.ca on 2001/11/10 00:46:31 UTC
[PATCH] httpclient with applet: security exception
Goal:
Use HttpClient within an untrusted applet to connect to the host the
applet originated from.
Problem:
LogSource static initializer calls
System.getProperty("httpclient.log","org.apache.commons.httpclient.log.NoOpLog");
which throws an AccessControlException
Possible solution:
move the System.getProperty call inside the "try" block.
Is this reasonable?
Patch:
128a129
> String logclassname = System.getProperty("httpclient.log","org.apache.commons.httpclient.log.NoOpLog");
130d130
< String logclassname = System.getProperty("httpclient.log","org.apache.commons.httpclient.log.NoOpLog");
Diff'd against approximately Nov 7 CVS tree.
Thanks.
Alvin.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>