Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1026

checksum failed due to incorrect parsing of .sha1 file content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.0
    • 2.1.0-RC1
    • Core
    • None
    • Windows XP, Ant 1.6.5

    Description

      Ivy failed to download artifacts from maven public repository due a checksum failure.

      The problem exists in class ChecksumHelper.java at line 59.

      It checks to see if there is a space in the checksum file content, if so, it does a substring from position 0 to the position index of the space. However, on maven public repository, the sha1 checksum content looks like this (http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar.sha1):

      SHA1(serializer-2.7.1.jar)= 4b4b18df434451249bb65a63f2fb69e215a6a020 -

      Thus, it compares the computed checksum against SHA1(serializer-2.7.1.jar) instead of the actual checksum in .sha1 file.

      Below is the debug messages:

      [ivy:resolve] parameter found as ivy variable: ivy.configurations=*
      [ivy:resolve] parameter found as ivy variable: ivy.resolve.default.type.filter=*
      [ivy:resolve] parameter found as ivy variable: ivy.dep.file=ivy.xml
      [ivy:resolve] using ivy parser to parse file:/C:/Documents%20and%20Settings/linj6/My%20Documents/subversion/system_owner/dia/SecurityService/trunk/mod
      ules/wsapi-client/ivy.xml
      [ivy:resolve] post 1.3 ivy file: using exact as default matcher
      [ivy:resolve] :: resolving dependencies :: au.edu.qut.dia#ws-api-client;1.0 [not transitive]
      [ivy:resolve] confs: [default]
      [ivy:resolve] validate = true
      [ivy:resolve] refresh = false
      [ivy:resolve] resolving dependencies for configuration 'default'
      [ivy:resolve] == resolving dependencies for au.edu.qut.dia#ws-api-client;1.0 [default]
      [ivy:resolve] loadData of au.edu.qut.dia#ws-api-client;1.0 of rootConf=default
      [ivy:resolve] == resolving dependencies au.edu.qut.dia#ws-api-client;1.0->xalan#serializer;2.7.1 [default->*]
      [ivy:resolve] loadData of xalan#serializer;2.7.1 of rootConf=default
      [ivy:resolve] using myresolvers to resolve xalan#serializer;2.7.1
      [ivy:resolve] myresolvers: Checking cache for: dependency: xalan#serializer;2.7.1 {*=[*]}
      [ivy:resolve] No entry is found in the ModuleDescriptorCache : C:\Documents and Settings\linj6\.ivy2\cache\xalan\serializer\ivy-2.7.1.xml
      [ivy:resolve] pre 1.3 ivy file: using exactOrRegexp as default matcher
      [ivy:resolve] found ivy file in cache for xalan#serializer;2.7.1 (resolved by mvn-repo): C:\Documents and Settings\linj6\.ivy2\cache\xalan\serialize
      r\ivy-2.7.1.xml
      [ivy:resolve] myresolvers: module revision found in cache: xalan#serializer;2.7.1
      [ivy:resolve] found xalan#serializer;2.7.1 in mvn-repo
      [ivy:resolve] Nbr of module to sort : 1
      [ivy:resolve] Sort dependencies of : xalan#serializer;2.7.1 / Number of dependencies = 0
      [ivy:resolve] Sort done for : xalan#serializer;2.7.1
      [ivy:resolve] resolved ivy file produced in C:\Documents and Settings\linj6\.ivy2\cache\resolved-au.edu.qut.dia-ws-api-client-1.0.xml
      [ivy:resolve] :: downloading artifacts ::
      [ivy:resolve] trying http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar
      [ivy:resolve] tried http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar
      [ivy:resolve] using commons httpclient 3.x helper
      [ivy:resolve] downloading http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar ...
      [ivy:resolve] mvn-repo: downloading http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar
      [ivy:resolve] to C:\Documents and Settings\linj6\.ivy2\cache\xalan\serializer\jars\serializer-2.7.1.jar.part
      [ivy:resolve] .......... (271kB)
      [ivy:resolve] sha1 file found for http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar: checking...
      [ivy:resolve] mvn-repo: downloading http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar.sha1
      [ivy:resolve] to C:\DOCUME~1\linj6\LOCALS~1\Temp\ivytmp10668sha1
      [ivy:resolve] .. (0kB)
      [ivy:resolve] WARN: [FAILED ] xalan#serializer;2.7.1!serializer.jar: invalid sha1: expected=sha1(serializer-2.7.1.jar)= computed=4b4b18df43445
      1249bb65a63f2fb69e215a6a020 (172ms)
      [ivy:resolve] WARN: [FAILED ] xalan#serializer;2.7.1!serializer.jar: invalid sha1: expected=sha1(serializer-2.7.1.jar)= computed=4b4b18df43445
      1249bb65a63f2fb69e215a6a020 (172ms)
      [ivy:resolve] WARN: ==== mvn-repo: tried
      [ivy:resolve] WARN: http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar
      [ivy:resolve] :: resolution report :: resolve 109ms :: artifacts dl 172ms
      ---------------------------------------------------------------------

        modules artifacts
      conf number search dwnlded evicted number dwnlded

      ---------------------------------------------------------------------

      default 1 0 0 0 1 0

      ---------------------------------------------------------------------
      [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve] WARN: :: FAILED DOWNLOADS ::
      [ivy:resolve] WARN: :: ^ see resolution messages for details ^ ::
      [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve] WARN: :: xalan#serializer;2.7.1!serializer.jar
      [ivy:resolve] WARN: ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve] Nbr of module to sort : 1
      [ivy:resolve] Sort dependencies of : xalan#serializer;2.7.1 / Number of dependencies = 0
      [ivy:resolve] Sort done for : xalan#serializer;2.7.1
      [ivy:resolve] report for au.edu.qut.dia#ws-api-client;1.0 default produced in C:\Documents and Settings\linj6\.ivy2\cache\au.edu.qut.dia-ws-api-clie
      nt-default.xml
      [ivy:resolve] resolve done (109ms resolve - 172ms download)

      [ivy:resolve] :: problems summary ::
      [ivy:resolve] :::: WARNINGS
      [ivy:resolve] [FAILED ] xalan#serializer;2.7.1!serializer.jar: invalid sha1: expected=sha1(serializer-2.7.1.jar)= computed=4b4b18df43445
      1249bb65a63f2fb69e215a6a020 (172ms)
      [ivy:resolve] [FAILED ] xalan#serializer;2.7.1!serializer.jar: invalid sha1: expected=sha1(serializer-2.7.1.jar)= computed=4b4b18df43445
      1249bb65a63f2fb69e215a6a020 (172ms)
      [ivy:resolve] ==== mvn-repo: tried
      [ivy:resolve] http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.jar
      [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve] :: FAILED DOWNLOADS ::
      [ivy:resolve] :: ^ see resolution messages for details ^ ::
      [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve] :: xalan#serializer;2.7.1!serializer.jar
      [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
      [ivy:resolve]
      [ivy:resolve]
      [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

      Attachments

        Issue Links

          Activity

            People

              maartenc Maarten Coene
              tingjan Joe Lin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: