Ivy
  1. Ivy
  2. IVY-956

Latest Compatible Conflict Manager + Extra Attributes in Dependencies' IVY files == inifinite loop

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC1
    • Fix Version/s: 2.2.0-RC1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP
      Java 6

      Description

      When using the Latest Compatible Conflict Manager with the resolution of modules/revisions that contain extra attributes, you get into an infinite loop.

      The dependencies on my repository contains this in their <info/> element:

      <info organisation="CAE-VSK" module="VSK-FC" revision="0.54.0.0" status="Development" publication="20081016173017" buddies="" approver="Somebody">
      

      If the ivy.xml that I would like to resolve contains this:

       <dependencies>
        <dependency org="CAE-VSK" name="VSK-FC" rev="0.53.0.1" transitive="false" force="true" conf="BuildTimeDependencies-&gt;*" policydependency="true">
        </dependency>
        <dependency org="CAE-VSK" name="VSK-FC" rev="[0.50.0.0,0.55.0.0]" transitive="false" force="true" conf="BuildTimeDependencies-&gt;*">
        </dependency>
       </dependencies>
      

      then the ResolveEngine gets into an infinite loop with this being displayed over and over again:

      [ivy:resolve]   found CAE-VSK#VSK-FC#MAIN;0.54.1.0 in attribs
      [ivy:resolve]   [0.54.1.0] CAE-VSK#VSK-FC#MAIN;[0.50.0.0,0.55.0.0]
      [ivy:resolve] BLACKLISTING [CAE-VSK#VSK-FC#MAIN;0.54.1.0 blacklisted to evict CAE-VSK#VSK-FC#MAIN;0.54.1.0 in favor of CAE-VSK#VSK-FC#MAIN;0.53.0.1 in CAE#TESTA#MAIN;working@pc6346 for BuildTimeDependencies]
      

      I'm going to attach 2 tests – one that operates on a repository that contains revs with NO attribs and one that operates on a repository that contains revs WITH attribs.

      Thanks,

      Scott

        Issue Links

          Activity

            People

            • Assignee:
              Maarten Coene
              Reporter:
              Scott Hebert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development