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

Files.probeContentType() returns different mime type for same file on Windows and Linux

XMLWordPrintable

    • generic
    • linux

      FULL PRODUCT VERSION :
      RHEL:
      java version "1.8.0_144"
      Java (TM) SE Runtime Environment (build 1.8.0_144-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

      Windows:
      java version "1.8.0_144"
      Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)



      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 x64
      Red Hat Enterprise Linux Server release 6.8 (Santiago)

      A DESCRIPTION OF THE PROBLEM :
      Files.probeContentType() will return for a simple XML file "application/xml" and on windows "text/xml"


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The same return in both scenarios for the same file on either linux or windows.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            bpb Brian Burkhalter
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: