Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D3F0175AA for ; Sat, 11 Jul 2015 16:20:05 +0000 (UTC) Received: (qmail 20174 invoked by uid 500); 11 Jul 2015 16:20:05 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20151 invoked by uid 500); 11 Jul 2015 16:20:05 -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 20141 invoked by uid 99); 11 Jul 2015 16:20:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jul 2015 16:20:05 +0000 Date: Sat, 11 Jul 2015 16:20:04 +0000 (UTC) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-6741) User code can get the ContextManager from an EmbedConnection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623467#comment-14623467 ] Bryan Pendleton commented on DERBY-6741: ---------------------------------------- With OpenJDK 1.8.0_45 running on Fedora22, I see highly intermittent failures in NoDBInternalsPermissionTest.test_002_EmbedConnection My error is: java.security.AccessControlException: access denied org.apache.derby.security.SystemPermission( "engine", "usederbyinternals" ) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:457) at java.security.AccessController.checkPermission(AccessController.java:884) at org.apache.derby.iapi.security.SecurityUtil.checkDerbyInternalsPrivilege(SecurityUtil.java:221) at org.apache.derby.iapi.services.monitor.Monitor.getMonitorLite(Monitor.java:339) at org.apache.derby.iapi.services.property.PropertyUtil$2.run(PropertyUtil.java:719) at org.apache.derby.iapi.services.property.PropertyUtil$2.run(PropertyUtil.java:716) at java.security.AccessController.doPrivileged(Native Method) The error is quite hard to reproduce, and seems only to happen in large suite runs. Any thoughts on what might be happening? > User code can get the ContextManager from an EmbedConnection > ------------------------------------------------------------ > > Key: DERBY-6741 > URL: https://issues.apache.org/jira/browse/DERBY-6741 > Project: Derby > Issue Type: Bug > Components: JDBC, Services > Reporter: Rick Hillegas > Assignee: Rick Hillegas > Fix For: 10.12.0.0 > > Attachments: derby-6741-01-aa-usederbyinternals.diff > > > EmbedConnection.getContextManager() is a public method. Exposing internals like the ContextManager is a security risk. -- This message was sent by Atlassian JIRA (v6.3.4#6332)