commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alv...@dsl.ab.ca
Subject [PATCH] httpclient with applet: security exception
Date Fri, 09 Nov 2001 23:46:31 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message