Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 74123 invoked from network); 29 Sep 2008 16:18:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Sep 2008 16:18:35 -0000 Received: (qmail 44693 invoked by uid 500); 29 Sep 2008 16:18:33 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 44675 invoked by uid 500); 29 Sep 2008 16:18:33 -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 44666 invoked by uid 99); 29 Sep 2008 16:18:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2008 09:18:33 -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; Mon, 29 Sep 2008 16:17:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2FD5D234C1E1 for ; Mon, 29 Sep 2008 09:17:44 -0700 (PDT) Message-ID: <358920238.1222705064188.JavaMail.jira@brutus> Date: Mon, 29 Sep 2008 09:17:44 -0700 (PDT) From: "Pavel Sher (JIRA)" To: notifications@ant.apache.org Subject: [jira] Commented: (IVY-923) Can't download files containing space or + in their names by HTTP In-Reply-To: <1189853250.1222697564315.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635432#action_12635432 ] Pavel Sher commented on IVY-923: -------------------------------- I made a quick and dirty hack in HttpClientHandler: in methods doGet, doHead and upload I changed argument url to: BasicURLHandler.normalize(dest).toExternalForm() This solved problem with names with spaces but names with plus sign still do not work. > Can't download files containing space or + in their names by HTTP > ----------------------------------------------------------------- > > Key: IVY-923 > URL: https://issues.apache.org/jira/browse/IVY-923 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0-RC1 > Reporter: Pavel Sher > > I have an artifact with space in it's name, such artifact can't be downloaded by Ivy 2.0 RC1. The problem is somewhere near the doHead() method of the org.apache.ivy.util.url.HttpClientHandler class. This method receives url but this url contains spaces and when HttpClient HeadMethod is constructed an exception is thrown (which is silently ignored by the way). It seems that URL parts must be properly escaped before sent to HTTP client, since URL.toExternalForm() does not do this. > The same problem seems to occur if file name contains +. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.