Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 27021 invoked from network); 9 Nov 2001 23:48:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 23:48:02 -0000 Received: (qmail 27190 invoked by uid 97); 9 Nov 2001 23:47:59 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 27153 invoked by uid 97); 9 Nov 2001 23:47:57 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 27056 invoked from network); 9 Nov 2001 23:47:54 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15340.27351.75364.700909@dslsun3.dsl.ab.ca> Date: Fri, 9 Nov 2001 16:46:31 -0700 (MST) To: commons-dev@jakarta.apache.org Subject: [PATCH] httpclient with applet: security exception X-Mailer: VM 6.64 under 20.3 "Vatican City" XEmacs Lucid Reply-To: alvins@dsl.ab.ca From: alvins@dsl.ab.ca Errors-To: alvins@dsl.ab.ca X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: