Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-7312

ISO/volume format name checking is crude and doesn't work with advanced URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.5.0
    • Storage Controller
    • 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.

      Attachments

        Activity

          People

            minchen07 Min Chen
            minchen07 Min Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: