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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.6.1
    • Fix Version/s: 7.0.7, 8.0.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 7.0.7

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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