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 735A79BE5 for ; Fri, 18 Nov 2011 20:59:13 +0000 (UTC) Received: (qmail 62041 invoked by uid 500); 18 Nov 2011 20:59:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 61975 invoked by uid 500); 18 Nov 2011 20:59:13 -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 61968 invoked by uid 99); 18 Nov 2011 20:59:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2011 20:59:13 +0000 X-ASF-Spam-Status: No, hits=-2001.2 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; Fri, 18 Nov 2011 20:59:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AEAA78E8A9 for ; Fri, 18 Nov 2011 20:58:51 +0000 (UTC) Date: Fri, 18 Nov 2011 20:58:51 +0000 (UTC) From: "Rick Hillegas (Created) (JIRA)" To: derby-dev@db.apache.org Message-ID: <1136491220.44931.1321649931716.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (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 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 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