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

Backslash in ivy.xml /ivy-module/publications/artifact/@name breaks retrieval

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.0, 2.3.0, 2.4.0
    • None
    • Core

    Description

      I have defined a URL resolver that includes, among others, the artifact pattern <artifact pattern="http://repo1:8081/artifactory/ext-repackaged-local/[organization]/[module]/[revision]/[type]/[artifact]-[revision].[ext]" /> as well as an ivy pattern. The ivy file resolves properly, but it includes a published artifact with the defintion <artifact name="en\PresentationUI" type="xml" ext="xml" extra:os="windows" conf="default"/>. This ivy file has been in our artifact repository for a long time and cannot be changed.

      My issue occurs when ivy tries to retrieve this particular artifact. It uses the URL http://repo1:8081/artifactory/ext-repackaged-local/com/Microsoft/ReferenceAssemblies/3.0.6920.5001/xml/en\PresentationUI-3.0.6920.5001.xml which does not resolve due to the backslash between en and PresentationUI.

      I propose that ivy should fix URLs like this by replacing \ with /. I already have a fix ready to go which I'll use in my situation, but I would like this change to be accepted in the project.

      Attachments

        1. FixURLResolverUnitTests.patch
          7 kB
          Jerry Maloney
        2. NormalizeBackslash.patch
          2 kB
          Jerry Maloney

        Activity

          People

            Unassigned Unassigned
            jerry.maloney Jerry Maloney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified