Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72870 invoked from network); 20 Jul 2006 00:13:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2006 00:13:26 -0000 Received: (qmail 45995 invoked by uid 500); 20 Jul 2006 00:13:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45970 invoked by uid 500); 20 Jul 2006 00:13:26 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 45961 invoked by uid 99); 20 Jul 2006 00:13:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 17:13:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2006 17:13:25 -0700 Received: from fe-amer-06.sun.com ([192.18.108.180]) by brmea-mail-3.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k6K0D4sO020813 for ; Wed, 19 Jul 2006 18:13:04 -0600 (MDT) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J2O00K01DBBYU00@mail-amer.sun.com> (original mail from Lance.Andersen@Sun.COM) for derby-dev@db.apache.org; Wed, 19 Jul 2006 18:13:04 -0600 (MDT) Received: from [129.150.66.66] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J2O00AV2DXRIRA0@mail-amer.sun.com> for derby-dev@db.apache.org; Wed, 19 Jul 2006 18:13:04 -0600 (MDT) Date: Wed, 19 Jul 2006 20:13:03 -0400 From: "Lance J. Andersen" Subject: Re: [jira] Created: (DERBY-1540) JDBC 4 EoD with default QueryObjectGenerator fails with SecurityManager In-reply-to: <44BEC4C2.9070704@sun.com> Sender: Lance.Andersen@Sun.COM To: "Lance J. Andersen" Cc: derby-dev@db.apache.org, Amit Handa , Sushmita Sharma Message-id: <44BECA8F.5080902@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT References: <26409063.1153352353822.JavaMail.jira@brutus> <44BEC4C2.9070704@sun.com> User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N btw, did you try this with Beta2 of Mustang as i would be surprised if this fails as Rick worked with Amit on this earlier. Lance J. Andersen wrote: > Amit, > > Didn't u fix this already? > > > Please see the attached > > Daniel John Debrunner (JIRA) wrote: >> JDBC 4 EoD with default QueryObjectGenerator fails with SecurityManager >> ------------------------------------------------------------------------ >> >> Key: DERBY-1540 >> URL: http://issues.apache.org/jira/browse/DERBY-1540 >> Project: Derby >> Issue Type: Bug >> Components: JDBC >> Affects Versions: 10.2.0.0 >> Reporter: Daniel John Debrunner >> >> >> The test jdbc4/TestQueryObject runs without the security manager >> because the default QueryObjectGenerator uses reflection. >> See >> trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/TestQueryObject_app.properties >> >> >> Seems like a bug, but not sure of its cause or solution: Could be one >> (or none) of: >> >> - Make changes in Derby code, e.g. add privilege blocks but don't see >> how this will solve anything as it's not Derby code that's calling >> the reflection and I don't see any javadoc comments in JDBC 4.0 about >> methods throwing SecurityExceptions. >> >> - document the privileges required to use the EoD features, though >> not sure how we would document the ability to grant a privilege to >> system (JDK) code. Are these privileges documented in the JDBC spec? >> >> - a bug in the Mustang beta, default query object not being treated >> as system code, no priv blocks in it? >> >> - a limitation of the default QueryObjectGenerator , cannot use with >> a security manager? >> >> - a Derby test problem? >> >> This is more of a tracking issue, with a dump of my thoughts. >> >> >> >