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

Can't download files containing space or + in their names by HTTP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC2
    • Core
    • None

    Description

      I have an artifact with space in it's name, such artifact can't be downloaded by Ivy 2.0 RC1. The problem is somewhere near the doHead() method of the org.apache.ivy.util.url.HttpClientHandler class. This method receives url but this url contains spaces and when HttpClient HeadMethod is constructed an exception is thrown (which is silently ignored by the way). It seems that URL parts must be properly escaped before sent to HTTP client, since URL.toExternalForm() does not do this.

      The same problem seems to occur if file name contains +.

      Attachments

        Activity

          People

            maartenc Maarten Coene
            pavel.sher Pavel Sher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: