Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.2.0
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
Description
When registering ISO/Volume with CloudStack, it is necessary to provide a URL from which the ISO/Volume can be downloaded.
SO/Volume name checking currently just looks at the very end of the url string. e.g.:
private void checkFormat(String format, String url) {
if((!url.toLowerCase().endsWith("vhd"))
This breaks functionality for S3 pre-signed URL, or anything where the file extension is not the last part of the URL. We should at least attempt to parse the URL for filename vs parameters.