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 9990F200C7B for ; Sat, 20 May 2017 18:59:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8D1E7160BBE; Sat, 20 May 2017 16:59:09 +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 D1B13160BA7 for ; Sat, 20 May 2017 18:59:08 +0200 (CEST) Received: (qmail 98183 invoked by uid 500); 20 May 2017 16:59:08 -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 98171 invoked by uid 99); 20 May 2017 16:59:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2017 16:59:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 79560C7E24 for ; Sat, 20 May 2017 16:59:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id KknoBRnpp9xl for ; Sat, 20 May 2017 16:59:06 +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 38B695F2AC for ; Sat, 20 May 2017 16:59:06 +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 7A178E00C7 for ; Sat, 20 May 2017 16:59:05 +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 F3C562193C for ; Sat, 20 May 2017 16:59:04 +0000 (UTC) Date: Sat, 20 May 2017 16:59:04 +0000 (UTC) From: "chin (JIRA)" To: notifications@ant.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IVY-1485) Incorrect revision of dependencies put in to delivered Ivy files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 20 May 2017 16:59:09 -0000 [ https://issues.apache.org/jira/browse/IVY-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16018546#comment-16018546 ] chin commented on IVY-1485: --------------------------- Now that the project seems to be moving again, can someone take a look at the patch provided here and see if it's mergeable? > Incorrect revision of dependencies put in to delivered Ivy files > ---------------------------------------------------------------- > > Key: IVY-1485 > URL: https://issues.apache.org/jira/browse/IVY-1485 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.3.0, 2.4.0-RC1 > Reporter: Perrin Morrow > Priority: Critical > Attachments: 0001-Add-test-cases-for-IVY-1485.patch, 0002-Ensure-dependency-is-applicable-to-all-confs-of-matc.patch, ivy-1485-test-cases.patch > > > Ivy deliver incorrectly replaces top-level dependency revision with one from a transitive dependency in a different conf. > When writing the resolved Ivy properties into the cache, the Ivy ResolveEngine does not take into account the top-level confs. If it finds the same dependency on any transitive path it will prefer the resolved revision of the transitive dependency over that of the top-level dependency even when that transitive dependency is being resolved into a completely different top-level conf. This results in a delivered Ivy file, that when resolved again will pull in the wrong version of that top-level dependency. > Consider the following Ivy dependency chain: > {noformat} > top-level > [conf1] > - modA#1 > [conf2] > - modB#1 > - modA#2 > {noformat} > Ivy resolve and retrieve will pull modA#1 into conf1 and modA#2 into conf2, as expected. > Ivy deliver, however, will replace modA#1 with modA#2 in the delivered ivy descriptor. When that delivered ivy file is resolved again (by some other module depending on it) it will pull in modA#2 into both conf1 and conf2. > This appears to be a regression in Ivy 2.3.0. It did not happen with Ivy 2.2.0. (Maybe related to IVY-1300?) > We have written some test cases that demonstrate the problem (a diff against the Git repository master) which I will attach. > We're also working on a patch to fix this but so far it has proved elusive. -- This message was sent by Atlassian JIRA (v6.3.15#6346)