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

java/nio/file/Files/probeContentType/Basic.java fails on Linux SLES15 machine

    XMLWordPrintable

Details

    • b27
    • generic
    • linux

    Backports

      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.

        Attachments

          Issue Links

            Activity

              People

                mbaesken Matthias Baesken
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: