db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Matrigali (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-4329) If you try to create an in-memory database with an illegal encryption key size, you get an ASSERT failure rather than a diagnostic telling you that the key size is unsupported.
Date Tue, 21 Feb 2012 08:14:34 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Matrigali updated DERBY-4329:
----------------------------------

    Labels: derby_triage10_5_2 derby_triage10_9  (was: derby_triage10_5_2)

Triaged for 10.9, no changes.
                
> If you try to create an in-memory database with an illegal encryption key size, you get
an ASSERT failure rather than a diagnostic telling you that the key size is unsupported.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4329
>                 URL: https://issues.apache.org/jira/browse/DERBY-4329
>             Project: Derby
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>              Labels: derby_triage10_5_2, derby_triage10_9
>         Attachments: derby-4329-01-aa-dontSwallowExceptions.diff
>
>
> The following script shows this problem for me when I use a Java 5 VM on Mac OS X. The
first connection (to an in-memory database) raises an assertion. In contrast, the second connection
(to an on-disk database) gives useful diagnostics:
> ij version 10.6
> ij> connect 'jdbc:derby:memory:encdbcbc_256;create=true;dataEncryption=true;encryptionKeyLength=256;encryptionAlgorithm=AES/CBC/NoPadding;bootPassword=Thursday';
> ERROR XJ001: Java exception: 'ASSERT FAILED serviceName = memory:/Users/rh161140/derby/dummy/encdbcbc_256;storageFactory.getCanonicalName()
= /Users/rh161140/derby/dummy/encdbcbc_256: org.apache.derby.shared.common.sanity.AssertFailure'.
> ij> connect 'jdbc:derby:encdbcbc_256_disk;create=true;dataEncryption=true;encryptionKeyLength=256;encryptionAlgorithm=AES/CBC/NoPadding;bootPassword=Thursday';
> ERROR XJ041: Failed to create database 'encdbcbc_256_disk', see the next exception for
details.
> ERROR XBM01: Startup failed due to an exception. See next exception for details. 
> ERROR XBCX0: Exception from Cryptography provider. See next exception for details.
> ERROR XJ001: Java exception: 'Illegal key size: java.security.InvalidKeyException'.
> ij

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message