GitHub user ProjectMoon opened a pull request:
https://github.com/apache/cloudstack/pull/1746
SSVM downloader now handles redirects properly.
New version of #1607, opened against 4.9 so it can be forward merged.
**Original Description**
Previously it was using the HttpClient to make an initial request to an
ISO. This would follow redirects. Then it would make another request using
built-in Java URL and InputStream, which doesn't follow redirects. This results
in the ISO getting stuck at 0% forever and also causing DOS effects.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/greenqloud/cloudstack
pr-iso-follow-redirects-4.9
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/1746.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1746
----
commit 7a4220f17252d54a1b990c776d1378400652b0ab
Author: jeff <[email protected]>
Date: 2016-07-08T09:59:08Z
SSVM downloader now handles redirects properly.
Previously it was using the HttpClient to make an initial request
to an ISO. This would follow redirects. Then it would make
another request using built-in Java URL and InputStream, which
doesn't follow redirects. This results in the ISO getting stuck
at 0% forever and also causing DOS effects.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---