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 96C65111C7 for ; Tue, 10 Jun 2014 20:41:02 +0000 (UTC) Received: (qmail 27877 invoked by uid 500); 10 Jun 2014 20:41:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 27853 invoked by uid 500); 10 Jun 2014 20:41:02 -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 27843 invoked by uid 99); 10 Jun 2014 20:41:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2014 20:41:02 +0000 Date: Tue, 10 Jun 2014 20:41:02 +0000 (UTC) From: "Rafael Soares (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-4381) Connection to Derby doesn't work if the path has round braket in it 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-4381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026965#comment-14026965 ] Rafael Soares commented on DERBY-4381: -------------------------------------- Dear Myrna, I didn't know String.lastIndexOf was that new, we could just use the following then: rightParen = dataDirectory.length()-1; while(rightParen>0 && dataDirectory.charAt(rightParen)!=')') rightParen--; All the best. > Connection to Derby doesn't work if the path has round braket in it > -------------------------------------------------------------------- > > Key: DERBY-4381 > URL: https://issues.apache.org/jira/browse/DERBY-4381 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.5.3.0 > Environment: Windows Vista > Reporter: Shivaraju Gowda > Labels: derby_triage10_5_2 > Original Estimate: 5h > Remaining Estimate: 5h > > In 64 bit windows vista OS, if an executable is 32 bit than it is generally installed under > "C:\Program Files (x86)" folder. The brackets in the path cause problems while connecting > to any database stored in that folder(in jar format) through derby JDBC. > The effective connection string is : > jdbc:derby:jar:(C:/Program Files(86)/ClassicModels.jar)ClassicModels > This fails because the closing brackets is not escaped. > I looked into the documentation and didn't find references to escaping the brackets in the path. > I think this problem should be reproducible on all platforms. > you cannot connect to it, -- This message was sent by Atlassian JIRA (v6.2#6252)