[
https://issues.apache.org/jira/browse/DERBY-6751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick Hillegas updated DERBY-6751:
---------------------------------
Attachment: derby-6751-01-ab-usederbyinternals.diff
Attaching derby-6751-01-ab-usederbyinternals.diff. This version of the patch
adds doPrivileged() blocks to some more callers of
EmbedConnection.getLanguageConnection(). I am re-running tests now.
Touches the following additional files:
M java/engine/org/apache/derby/impl/jdbc/ConnectionChild.java
M java/engine/org/apache/derby/jdbc/EmbedPooledConnection.java
M java/engine/org/apache/derby/jdbc/EmbedXAResource.java
M java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java
> Prevent user code from getting the LanguageConnectionContext from an
> EmbedConnection
> ------------------------------------------------------------------------------------
>
> Key: DERBY-6751
> URL: https://issues.apache.org/jira/browse/DERBY-6751
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.12.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Attachments: derby-6751-01-aa-usederbyinternals.diff,
> derby-6751-01-ab-usederbyinternals.diff
>
>
> User code can cast a java.sql.Connection to an EmbedConnection and then get
> the LanguageConnectionContext by calling
> EmbedConnection.getLanguageConnection(). We should prevent user code from
> doing this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)