Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58F9A200CAD for ; Wed, 14 Jun 2017 04:54:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 579B0160BE9; Wed, 14 Jun 2017 02:54:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9D92B160BDC for ; Wed, 14 Jun 2017 04:54:07 +0200 (CEST) Received: (qmail 90526 invoked by uid 500); 14 Jun 2017 02:54:06 -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 90517 invoked by uid 99); 14 Jun 2017 02:54:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2017 02:54:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 16E281822E2 for ; Wed, 14 Jun 2017 02:54:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id z_Mvg7n7X9tI for ; Wed, 14 Jun 2017 02:54:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 856645F485 for ; Wed, 14 Jun 2017 02:54:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 163ECE00A3 for ; Wed, 14 Jun 2017 02:54:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 7A1DE21938 for ; Wed, 14 Jun 2017 02:54:00 +0000 (UTC) Date: Wed, 14 Jun 2017 02:54:00 +0000 (UTC) From: "jaikiran pai (JIRA)" To: notifications@ant.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IVY-1475) ivy:cachefileset fails with String index out of range on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 14 Jun 2017 02:54:08 -0000 [ https://issues.apache.org/jira/browse/IVY-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048641#comment-16048641 ] jaikiran pai commented on IVY-1475: ----------------------------------- [~pmatignon], this has now been implemented in upstream master of Ivy to throw a more explicit error if Ivy can't determine a common base directory for the cache artifacts. If you are interested, you can give it a try by downloading the nightly snapshot from Ivy's next nightly build (around 6 hours from now), which can be obtained from here https://builds.apache.org/view/A/view/Ant/job/Ivy-NightlyDistribution/lastSuccessfulBuild/ > ivy:cachefileset fails with String index out of range on Windows > ---------------------------------------------------------------- > > Key: IVY-1475 > URL: https://issues.apache.org/jira/browse/IVY-1475 > Project: Ivy > Issue Type: Bug > Components: Ant > Affects Versions: 2.4.0-RC1 > Environment: Windows > Reporter: Patrice Matignon > > On Windows, the ant task can fail with the stack trace below, when the resolve includes artifacts located in separate directories in separate drives (e.g. c:\ivy2/cache/... ; d:\ivy2\cache ). > The underlying issue is that cachefileset is an ant fileset and as such it requires a base dir. > Nevertheless, the implementation for this ant task doesn't handle this scenario properly: it attempts to find the common base dir for all the resolved artifacts, except that every time it runs into a conflicting artifacts, it just loses the information and ends up reporting an invalid base dir, which causes a fatal StringIndexOutOfBoundsException later in that task. > A sample stacktrace (the actual reported index varies): > C:\src\trunk\build.xml:839: impossible to build ivy cache fileset: java.lang.StringIndexOutOfBoundsException: String index out of range: -24 > at java.lang.String.substring(String.java:1937) > at java.lang.String.substring(String.java:1904) > at org.apache.ivy.ant.IvyCacheFileset.getPath(IvyCacheFileset.java:114) > at org.apache.ivy.ant.IvyCacheFileset.doExecute(IvyCacheFileset.java:82) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271) -- This message was sent by Atlassian JIRA (v6.4.14#64029)