Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 79970 invoked from network); 20 Aug 2008 17:53:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Aug 2008 17:53:07 -0000 Received: (qmail 5552 invoked by uid 500); 20 Aug 2008 17:53:05 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 5517 invoked by uid 500); 20 Aug 2008 17:53:05 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 5490 invoked by uid 99); 20 Aug 2008 17:53:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2008 10:53:04 -0700 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; Wed, 20 Aug 2008 17:52:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB724234C1BE for ; Wed, 20 Aug 2008 10:52:45 -0700 (PDT) Message-ID: <216681374.1219254765766.JavaMail.jira@brutus> Date: Wed, 20 Aug 2008 10:52:45 -0700 (PDT) From: "Jim Bonanno (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-884) URLRepository does not allow some valid file scheme uri's MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org URLRepository does not allow some valid file scheme uri's --------------------------------------------------------- Key: IVY-884 URL: https://issues.apache.org/jira/browse/IVY-884 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.0.0-beta-1 Reporter: Jim Bonanno We hit an interesting problem when we set a valid uri in a URL resolver, but the URLRepository could not list the repository. The problem was the uri was a file: scheme and the path had a space in it. The toString method for URI will escape the space and replace them with %20. URI.getPath will decode the %20 back into a space for listing, but URL.getPath will not. URLRepository has support for the file: scheme, but uses URL to get the path ( new URL(parent).getPath() ) instead of URI. Here is the fix we are using in list. } else if (parent.startsWith("file")) { try { String path = new URI(parent).getPath(); This is probably not a common problem because it requires a URL resolver with a URI using the file: scheme and a character that needs to be escaped, like a space I looked at the current source and this is still an issue. We hit the issue with beta-1 and currently stepping up to beta-2. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.