Reinstate use of libmagic for Java probeContentType on Linux.

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • tbd
    • Affects Version/s: 9
    • Component/s: 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.

            Assignee:
            Brian Burkhalter
            Reporter:
            Richard Evans
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: