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

(fs) Remove FileTypeDetectors based on libgio and libmagic

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b130
    • OS:
      linux
    • Verification:
      Verified

      Description

      The FileTypeDetectors based on libgio and libmagic introduce a certain unpredictability in the results of file probing. Also, testing on a minimal Ubuntu 16.04 x64 desktop system showed that while these detectors correctly identified an HTML file as text/html, they did not identify any of the common types "image/jpeg", "audio/mpeg", "video/mp4", "application/pdf", nor "image/png" for files of these respective types whereas the detector based on /etc/mime.types did correctly identify them. Given this apparent lack of adding value, removing these detectors would likely have little impact, would improve predictability of the results, and would make probing on Linux and Solaris equivalent, i.e., based on ~/.mime.types and /etc/mime.types alone.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                bpb Brian Burkhalter
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: