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.
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.
- duplicates
-
JDK-8191480 Files.probeContentType() returns different mime type for same file on Windows and Linux
-
- Closed
-
- links to