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 544AF713C for ; Mon, 19 Dec 2011 11:04:54 +0000 (UTC) Received: (qmail 92421 invoked by uid 500); 19 Dec 2011 11:04:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92341 invoked by uid 500); 19 Dec 2011 11:04:53 -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 92318 invoked by uid 99); 19 Dec 2011 11:04:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2011 11:04:53 +0000 X-ASF-Spam-Status: No, hits=-2002.5 required=5.0 tests=ALL_TRUSTED,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; Mon, 19 Dec 2011 11:04:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2B64211B59C for ; Mon, 19 Dec 2011 11:04:31 +0000 (UTC) Date: Mon, 19 Dec 2011 11:04:31 +0000 (UTC) From: "Knut Anders Hatlen (Resolved) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1184873508.25848.1324292671179.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1136491220.44931.1321649931716.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DERBY-5507) Orderly shutdown fails if you are using BUILTIN authentication and turn on derby.database.propertiesOnly 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-5507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-5507. --------------------------------------- Resolution: Fixed Fix Version/s: 10.9.0.0 All the regression tests passed. Committed revision 1220685. > Orderly shutdown fails if you are using BUILTIN authentication and turn on derby.database.propertiesOnly > -------------------------------------------------------------------------------------------------------- > > Key: DERBY-5507 > URL: https://issues.apache.org/jira/browse/DERBY-5507 > Project: Derby > Issue Type: Bug > Components: Miscellaneous > Affects Versions: 10.9.0.0 > Reporter: Rick Hillegas > Assignee: Knut Anders Hatlen > Fix For: 10.9.0.0 > > Attachments: d5507-1a.diff > > > The following script raises an assertion on the last line. We are failing during the encryption of the password. The assertion prints out the plaintext of the password. I ran the script with the following command line: > java \ > -Dderby.connection.requireAuthentication=true \ > -Dderby.authentication.provider=BUILTIN \ > -Dderby.user.test_dbo=test_dbopassword \ > org.apache.derby.tools.ij $SCRIPT > Here is the script: > connect 'jdbc:derby:memory:db;create=true;user=test_dbo;password=test_dbopassword'; > call syscs_util.syscs_set_database_property( 'derby.connection.requireAuthentication', 'true' ); > call syscs_util.syscs_set_database_property( 'derby.authentication.provider', 'BUILTIN' ); > -- shutdown works correctly if you comment out the following two lines > call syscs_util.syscs_set_database_property( 'derby.user.test_dbo', 'test_dbopassword' ); > call syscs_util.syscs_set_database_property( 'derby.database.propertiesOnly', 'true' ); > -- fails to authenticate correct credentials > connect 'jdbc:derby:memory:db;shutdown=true;user=test_dbo;password=test_dbopassword'; > Here is the assertion printed on the screen: > ERROR XJ001: Java exception: 'ASSERT FAILED Unknown authentication scheme for token test_dbopassword: org.apache.derby.shared.common.sanity.AssertFailure'. > Here is the stack trace in derby.log: > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED Unknown authentication scheme for token test_dbopassword > at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:162) > at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:147) > at org.apache.derby.impl.jdbc.authentication.BasicAuthenticationServiceImpl.encryptPasswordUsingStoredAlgorithm(BasicAuthenticationServiceImpl.java:282) > at org.apache.derby.impl.jdbc.authentication.BasicAuthenticationServiceImpl.authenticateUser(BasicAuthenticationServiceImpl.java:199) > at org.apache.derby.impl.jdbc.authentication.AuthenticationServiceBase.authenticate(AuthenticationServiceBase.java:279) > at org.apache.derby.impl.jdbc.EmbedConnection.checkUserCredentials(EmbedConnection.java:1220) > at org.apache.derby.impl.jdbc.EmbedConnection.(EmbedConnection.java:422) > at org.apache.derby.impl.jdbc.EmbedConnection30.(EmbedConnection30.java:73) > at org.apache.derby.impl.jdbc.EmbedConnection40.(EmbedConnection40.java:51) > at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Driver40.java:70) > at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:255) > at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:143) > at java.sql.DriverManager.getConnection(DriverManager.java:582) > at java.sql.DriverManager.getConnection(DriverManager.java:154) > at org.apache.derby.impl.tools.ij.ij.dynamicConnection(ij.java:1528) > at org.apache.derby.impl.tools.ij.ij.ConnectStatement(ij.java:1358) > at org.apache.derby.impl.tools.ij.ij.ijStatement(ij.java:1143) > at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:347) > at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:245) > at org.apache.derby.impl.tools.ij.Main.go(Main.java:229) > at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:184) > at org.apache.derby.impl.tools.ij.Main.main(Main.java:75) > at org.apache.derby.tools.ij.main(ij.java:59) -- 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