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 B8DE7923A for ; Thu, 16 Feb 2012 08:39:25 +0000 (UTC) Received: (qmail 63421 invoked by uid 500); 16 Feb 2012 08:39:25 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 63397 invoked by uid 500); 16 Feb 2012 08:39:25 -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 63390 invoked by uid 99); 16 Feb 2012 08:39:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 08:39:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 08:39:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A7A7B1BA41E for ; Thu, 16 Feb 2012 08:39:00 +0000 (UTC) Date: Thu, 16 Feb 2012 08:39:00 +0000 (UTC) From: "Knut Anders Hatlen (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1881386647.45441.1329381540688.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-2687) store/encryptDatabase.sql fails intermittently with ClassNotFoundException, Log Corrupted 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-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209225#comment-13209225 ] Knut Anders Hatlen commented on DERBY-2687: ------------------------------------------- > A possible solution for the "wrong boot" issue is to rewrite this > test to JUnit and just accept XBM0U, since we know it will happen > sometimes. That would silence the test, but it might alarm users if they occasionally get "log corrupted" errors in their logs. Even though they see that it boots fine the next time, they may lose confidence in the integrity of the database. > That leaves the "wrong password change" issue, of course. Although the chances of collisions are smaller when changing boot password, I suspect that if a collision occurs, it ends up corrupting the database, since the input to the encryption function is not the original secret key, so it'll save an encryption key that cannot be used to decrypt the db pages. That is, it saves encrypt(decrypt(encrypt(secretKey, "Thursday"), "thursday"), "derbypwd"); which cannot be decrypted to the original secret key using any of the three passwords (Thursday, thursday, derbypwd). Maybe we could start using the full digest for verification instead of the condensed 16 bit digest? That should solve both issues, but we'll need some extra logic to handle upgrades. > store/encryptDatabase.sql fails intermittently with ClassNotFoundException, Log Corrupted > ----------------------------------------------------------------------------------------- > > Key: DERBY-2687 > URL: https://issues.apache.org/jira/browse/DERBY-2687 > Project: Derby > Issue Type: Bug > Components: Store > Affects Versions: 10.2.2.1, 10.3.1.4 > Environment: Microsoft Windows XP Professional - 5.1.2600 Service Pack 2, Sun JVM 1.4.2_08-b03, 10.2.2.1. > SUSE Linux Enterprise Server 10 (x86_64) (Linux 2.6.16.21-0.8-smp), Sun JVM 1.6.0_01-b06, trunk (SVN 531991). > Solaris 10 x86, Sun JVM 1.5.0, SVN 371617 (2006-01-23). > Solaris 9 SPARC, Sun JVM 1.5.0, SVN 169872 (2005-05-13). > etc... > Reporter: John H. Embretsen > Labels: derby_triage10_5_2 > Attachments: derby.log, tmp-82.zip, wombat.zip > > > Failure seen in derbyall/encryptionAll run on WinXP (10.2.2.1). So far unable to reproduce (standalone or as part of derbyall, encryptionAll or encryptionBlowfish). > > store/encryptDatabase.sql > > > Failure details: > ********* Diff file derbyall/encryptionAll/encryptionBlowfish/encryptDatabase.diff > *** Start: encryptDatabase jdk1.4.2_08 encryptionAll:encryptionBlowfish 2007-05-21 05:07:55 *** > 95 del > < ERROR XBM06: Startup failed. An encrypted database cannot be accessed without the correct boot password. > 95a95 > > ERROR XJ001: Java exception: 'ERROR XBM0U: No class was registered for identifier 15009.: java.lang.ClassNotFoundException'. > Test Failed. > *** End: encryptDatabase jdk1.4.2_08 encryptionAll:encryptionBlowfish 2007-05-21 05:08:12 *** > > derby.log also reports "ERROR XSLA3: Log Corrupted, has invalid data in the log stream." -- 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