Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69119 invoked from network); 1 Nov 2005 22:30:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Nov 2005 22:30:18 -0000 Received: (qmail 23595 invoked by uid 500); 1 Nov 2005 22:30:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 23563 invoked by uid 500); 1 Nov 2005 22:30:17 -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 23554 invoked by uid 99); 1 Nov 2005 22:30:17 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 14:30:17 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0432759D for ; Tue, 1 Nov 2005 23:29:56 +0100 (CET) Message-ID: <1825837954.1130884196015.JavaMail.jira@ajax.apache.org> Date: Tue, 1 Nov 2005 23:29:56 +0100 (CET) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-656) SecurityException with accessDeclaredMembers on DatabaseMetaData.getTables. In-Reply-To: <718849606.1130432995429.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-656?page=all ] Daniel John Debrunner resolved DERBY-656: ----------------------------------------- Fix Version: 10.2.0.0 10.1.2.1 Resolution: Fixed Fixed in trunk (330133) and then merged to 10.1 (330136) > SecurityException with accessDeclaredMembers on DatabaseMetaData.getTables. > --------------------------------------------------------------------------- > > Key: DERBY-656 > URL: http://issues.apache.org/jira/browse/DERBY-656 > Project: Derby > Type: Bug > Components: Security > Versions: 10.1.1.0 > Reporter: Daniel John Debrunner > Assignee: Daniel John Debrunner > Fix For: 10.1.2.1, 10.2.0.0 > > The code to determine the size of a class is using getDeclaredMembers which requires the permission accessDeclaredMembers. Ideally should not require to grant this permission to derby.jar. Need to see which > class's size was being calculated. The code is not in a priv block which would require granting the permission all the way up the stack. > Maybe if the class's declared memebrs can not be accessed and the value can not be pre-calculkated then some estimate could be made. (using public fields?). > java.security.AccessControlException: Access denied > (java.lang.RuntimePermission accessDeclaredMembers) > at > java.security.AccessController.checkPermission(AccessController. > java:107) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:5 > 47) > at > com.ibm.ws.security.core.SecurityManager.checkPermission(Securit > yManager.java:188) > at > java.lang.SecurityManager.checkMemberAccess(SecurityManager.java > :1677) > at java.lang.Class.checkMemberAccess(Class.java:104) > at java.lang.Class.getDeclaredFields(Class.java:508) > at > org.apache.derby.iapi.services.cache.ClassSize.getSizeCoefficien > ts(Unknown Source) > at > org.apache.derby.iapi.services.cache.ClassSize.estimateBase(Unkn > own Source) > at > org.apache.derby.iapi.store.access.BackingStoreHashtable. nit>(Unknown Source) > at java.lang.J9VMInternals.initializeImpl(Native > Method) > at > java.lang.J9VMInternals.initialize(J9VMInternals.java:148) > at > org.apache.derby.impl.sql.execute.HashTableResultSet.openCore(Un > known Source) > at > org.apache.derby.impl.sql.execute.JoinResultSet.openRight(Unknow > n Source) > at > org.apache.derby.impl.sql.execute.JoinResultSet.openCore(Unknown > Source) > at > org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openC > ore(Unknown Source) > at > org.apache.derby.impl.sql.execute.SortResultSet.openCore(Unknown > Source) > at > org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open(U > nknown Source) > at > org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unkno > wn Source) > at > org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unkno > wn Source) > at > org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStateme > nt(Unknown Source) > at > org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeQuery(U > nknown Source) > at > org.apache.derby.impl.jdbc.EmbedDatabaseMetaData.getTables(Unkno > wn Source) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira