Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8188228

Reinstate use of libmagic for Java probeContentType on Linux.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • tbd
    • 9
    • core-libs
    • None

      Bug JDK-8162624 recommended the removal of the libmagic-based file type detector on Linux.

      This seems a serious regression. Analysis of file type based on content is very useful for white-listing uploaded files where you cannot trust the extension.

      On Oracle Linux 6 Java 1.8 successfully recognizes (for example) JPEGs, PNGs and PDFs based on content alone.

      Understand that not all platforms can behave in the same way but it seems better to do the most rather than the least on each platform.

            bpb Brian Burkhalter
            revans Richard Evans
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: