Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-610

File chooser for add-deployment only accepts .zip by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.0.0.Alpha5
    • 1.0.0.Alpha4
    • User Interface
    • None

    Description

      The upload file chooser accepts only zip files by default. While .ear and .*ar are technically zips, they are not recognized as such.

      The file chooser code in detail-deployments-add.html restricts to pure zip only:

      <div class="col-sm-9">
      <input fileread="dac.deploymentData.binaryFile" type="file" accept="application/zip"
      ng-model="dac.deploymentData.filePath" hk-valid-file required
      name="deployFile"/>
      </div>

      Wikipedia seems to suggest a mime-type of "application/java-archive" https://en.wikipedia.org/wiki/JAR_(file_format)

      Attachments

        Activity

          People

            mithomps1@redhat.com Mike Thompson (Inactive)
            pilhuhn Heiko Rupp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: