Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-560

File can't be downloaded if HTTP HEAD on base url fails

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None

    Description

      When i try to download a File via HTTP a HEAD-Request on the base url is executed before the actual download. In my case the result is a redirect (HTTP 302) to another server. This server is not available due to firewall restrictions and so the following HEAD request fails. The actual GET request to retrieve the file is never performed.

      Example:

      Url: http://server1.com/files/2015/image.jpg

      1. commons-vfs sends HEAD request to http://server1.com/ (not http://server1.com/files/2015/image.jpg)
      2. Server returns HTTP 302 with redirect to http://server2.com/
      3. commons-vfs sends HEAD request to http://server2.com/
      4. Request fails because server2.com is not available (firewall)
      5. image.jpg is not downloaded

      Why is this HEAD request on the base url necessary? The file can be downloaded directly without problems.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            b.eckenfels Bernd Eckenfels
            patrickgh Patrick GH
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment