db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunitha Kambhampati (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1055) Security.AccessControlException in client under SecurityManager when trying to connect using EUSRIDPWD security mechanism
Date Mon, 27 Feb 2006 02:32:41 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1055?page=all ]

Sunitha Kambhampati updated DERBY-1055:
---------------------------------------

    Attachment: Derby1055.2.diff.txt
                Derby1055.2.stat.txt

Cool!  Thanks much Dan. 

I am attaching a new patch (Derby1055.2.diff.txt, Derby1055.2.stat.txt) which incorporates
Dan's comment.

This patch ( Derby1055.2.diff.txt) includes the following change which is different from the
earlier(Derby1055.diff.txt):
- removes the unnecessary addProvider call in EncryptionManager which was throwing the AccessControlException.
Thus no changes are needed to the security policy file as a result. 

Rest changes are test changes similar to what is in Derby1055.diff.txt.

svn stat
M      java\testing\org\apache\derbyTesting\functionTests\tests\derbynet\testSecMec.java
M      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNet\testSecMec.out
A      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNet\ibm14
A      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNet\ibm14\testSecMec.out
M      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNetClient\testSecMec.out
A      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNetClient\ibm14
A      java\testing\org\apache\derbyTesting\functionTests\master\DerbyNetClient\ibm14\testSecMec.out
M      java\client\org\apache\derby\client\am\EncryptionManager.java

Ran test derbynet/testSecMec.java with jars(sane,insane) for both DerbyNet and DerbyNetClient
frameworks with ibm131/ibm141/ibm142/ibm15/jdk131/jdk141/jdk142/jdk15 OK.

Derbyall ran ok with ibm142/linux with known failures. 

Can someone please review and if it looks ok commit this change. 

Thanks.

> Security.AccessControlException in client under SecurityManager when trying to connect
using EUSRIDPWD security mechanism
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: DERBY-1055
>          URL: http://issues.apache.org/jira/browse/DERBY-1055
>      Project: Derby
>         Type: Bug
>   Components: Network Client
>     Versions: 10.0.2.1, 10.0.2.0, 10.1.1.0, 10.1.1.1, 10.1.1.2, 10.1.2.0, 10.1.2.1, 10.1.2.2
>  Environment: all
>     Reporter: Sunitha Kambhampati
>     Assignee: Sunitha Kambhampati
>     Priority: Minor
>      Fix For: 10.2.0.0
>  Attachments: Derby1055.2.diff.txt, Derby1055.2.stat.txt, Derby1055.diff.txt, Derby1055.stat.txt
>
> When using EUSRIDPWD security mechanism, the JCE provider is added and since this is
not in a privileged block, an accesscontrol exception is raised when trying to connect using
EUSRIDPWD security mechanism, when client is run under security manager.
> Enabled test (T5) in testSecMec.java 
> > T5: jdbc:derby://xxxFILTERED_HOSTNAMExxx:xxxFILTEREDPORTxxx/wombat;user=neelima;password=lee;securityMechanism=9
- EXCEPTION Unexpected throwable caught java.security.AccessControlException: access denied
(java.security.SecurityPermission insertProvider.SunJCE)

-- 
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


Mime
View raw message