Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2858

content type list is not complete in the contentType.properties file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.7, 8.0.1
    • 7.0.6.1
    • Components
    • Security Level: Jimmy
    • None
    • ZK 7.0.7
    • None

      Currently, the contentType.properties file list is not complete, for example, svg/svgz is not listed. Either we maintain it manually, or use other java class that hold all mime types, such as http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/MediaType.html, http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/net/MediaType.html or https://tika.apache.org/.

      Or consider a reasonable default content type for undetected content types, currently it returns ";charset=UTF-8;charset=UTF-8" in the response header (see attached sample) which make no sense.

        1. imi-dach.svg
          4 kB
        2. svg.zul
          0.0 kB

            wenninghsu wenninghsu
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h