Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 60364 invoked from network); 18 Sep 2008 21:57:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 21:57:43 -0000 Received: (qmail 49062 invoked by uid 500); 18 Sep 2008 21:57:40 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 49037 invoked by uid 500); 18 Sep 2008 21:57:39 -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 49028 invoked by uid 99); 18 Sep 2008 21:57:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 14:57:39 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG 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, 18 Sep 2008 21:56:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 258B9234C1D8 for ; Thu, 18 Sep 2008 14:56:44 -0700 (PDT) Message-ID: <1214069336.1221775004141.JavaMail.jira@brutus> Date: Thu, 18 Sep 2008 14:56:44 -0700 (PDT) From: "Maarten Coene (JIRA)" To: notifications@ant.apache.org Subject: [jira] Commented: (IVY-911) Resolve failed on certain proxy environment In-Reply-To: <1191606113.1221738826037.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-911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632406#action_12632406 ] Maarten Coene commented on IVY-911: ----------------------------------- I've committed something based on your patches on the SVN "2.0.x" branch. You can now specify which HTTP method to use in your settings.xml: {code:xml} {code} Could you please give it a try and post your feedback here? > Resolve failed on certain proxy environment > ------------------------------------------- > > Key: IVY-911 > URL: https://issues.apache.org/jira/browse/IVY-911 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0-RC1, trunk > Environment: 2.0.0-rc1 (and tested with the latest trunk); checked using Eclipse 3.3 under Windows XP; Ant 1.7.0; jdk1.5.0_05 > access to the internet via at least 2 proxies (chained - internal and afterwards corporate proxy) > Reporter: rednix > Assignee: Maarten Coene > Attachments: AbstractURLHandler.Patch.for.IVY-911.txt, BasicURLHandler.Patch.for.IVY-911.txt, HttpClientHandler.Patch.for.IVY-911.txt > > > In the early incubating phase the URLInfo were retrieved via a full http GET request. In the latest codebase this has been changed to a faster HEAD request to optimize performance. For most network scenarios this is no problem. But in our company we are going through at least 2 proxies to access the internet. We have no control over the settings/configurations of all of these proxies. Using a full http GET request in the getURLInfo() method the retrieve is working in this scenario without any problems; but using only a HEAD request the retrieve failed with an exception "Server access Error: Unexpected end of file from server ". > So my suggestion is to add a configuration option to ivy which (if set) causes to fall back to the slower but working GET request in the method. > I hope that I classified the issue correctly - for most users it might not be as important as it is for ourselves. > The entry in ivy-user mailing list concerning this issue: http://www.nabble.com/.bundle-extension-in-ivy-retrieve...-im-so-confused-td18562574.html > So here come my proposed patches for the involved classes (for both cases - when using the commons-httpclient or the basic handler). > I've altered the following classes: AbstractURLHandler, BasicURLHandler, HttpClientHandler > I've not changed the invocation/creation of the handler - it is created in URLHandlerRegistry#getHttp() via org.apache.ivy.Main#configureURLHandler(...) or org.apache.ivy.ant.IvyAntSettings#configureURLHandler(). Currently the getHttp() method takes no parameter - maybe this should be changed passing the introduced flag as an int. Or an alternative approach should be used to pass the new ivy-config parameter through to the getURLInfo() method. Hope you will manage the rest of it the way you handle such cases overall in the codebase. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.