Details
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278709 | 19 | Matthias Baesken | P4 | Resolved | Fixed | team |
JDK-8282050 | 17.0.3 | Matthias Baesken | P4 | Resolved | Fixed | b03 |
Description
The test java/nio/file/Files/probeContentType/Basic.java fails on a SLES15 Linux machine with this output :
Content type: application/x-bzip; expected: [application/bz2, application/x-bzip2]
Content type: application/x-genesis-rom; expected: [text/markdown]
Content type: application/x-php; expected: [text/plain, text/php]
Content type: application/x-rar; expected: [application/rar, application/vnd.rar]
java.lang.RuntimeException: Test failed!
at Basic.main(Basic.java:192)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
For see the strange 'application/x-genesis-rom' mapping see also
markdown files ending in .md get marked as 'application/x-genesis-rom'
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/611763
The other mappings look okay to me but sems we need to add them to the test.
Content type: application/x-bzip; expected: [application/bz2, application/x-bzip2]
Content type: application/x-genesis-rom; expected: [text/markdown]
Content type: application/x-php; expected: [text/plain, text/php]
Content type: application/x-rar; expected: [application/rar, application/vnd.rar]
java.lang.RuntimeException: Test failed!
at Basic.main(Basic.java:192)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
For see the strange 'application/x-genesis-rom' mapping see also
markdown files ending in .md get marked as 'application/x-genesis-rom'
https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/611763
The other mappings look okay to me but sems we need to add them to the test.
Attachments
Issue Links
- backported by
-
JDK-8278709 java/nio/file/Files/probeContentType/Basic.java fails on Linux SLES15 machine
-
- Resolved
-
-
JDK-8282050 java/nio/file/Files/probeContentType/Basic.java fails on Linux SLES15 machine
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/a59e8cbc
-
Commit openjdk/jdk/fd8cb2da
-
Review openjdk/jdk17u-dev/165
-
Review openjdk/jdk/6761
(1 links to)