Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 66292 invoked from network); 26 Mar 2009 11:50:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Mar 2009 11:50:17 -0000 Received: (qmail 26381 invoked by uid 500); 26 Mar 2009 11:50:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 26352 invoked by uid 500); 26 Mar 2009 11:50:17 -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 26344 invoked by uid 99); 26 Mar 2009 11:50:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 11:50:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2009 11:50:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 39EFD234C044 for ; Thu, 26 Mar 2009 04:49:54 -0700 (PDT) Message-ID: <1041399144.1238068194235.JavaMail.jira@brutus> Date: Thu, 26 Mar 2009 04:49:54 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-4117) dblook script fails when URL contains special characters In-Reply-To: <1664427901.1237971532372.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen closed DERBY-4117. ------------------------------------- Resolution: Fixed Fix Version/s: 10.6.0.0 10.5.1.1 Derby Info: (was: [Patch Available]) Committed to trunk with revision 758603. Merged to 10.5 and committed revision 758604. > dblook script fails when URL contains special characters > -------------------------------------------------------- > > Key: DERBY-4117 > URL: https://issues.apache.org/jira/browse/DERBY-4117 > Project: Derby > Issue Type: Bug > Components: Tools > Affects Versions: 10.5.1.0 > Reporter: Knut Anders Hatlen > Assignee: Knut Anders Hatlen > Priority: Minor > Fix For: 10.5.1.1, 10.6.0.0 > > Attachments: d4117.diff > > > This problem was discovered when testing 10.5.1.0-RC1. The dblook shell script fails if the database URL contains characters that have a special meaning to the shell, even if those characters are properly escaped/quoted on the command line. Example: > $ ./bin/dblook -d 'jdbc:derby:jar:(demo/databases/toursdb.jar)toursdb' > ./bin/dblook[29]: eval: syntax error at line 1: `(' unexpected > Connection attributes, like create=true, will be ignored because the semi-colon makes the script execute the setting of the connection attribute as a separate shell command: > $ ./bin/dblook -d 'jdbc:derby:NewDatabase;create=true' > -- Timestamp: 2009-03-25 09:54:56.169 > -- Source database is: NewDatabase > -- Connection URL is: jdbc:derby:NewDatabase > -- appendLogs: false > -- Note: At least one unexpected error/warning message was > -- encountered during DDL generation. See dblook.log > -- to review the message(s). > In dblook.log: > java.sql.SQLException: Database 'NewDatabase' not found. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) > ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.