RFR: 8290197: test/jdk/java/nio/file/Files/probeContentType/Basic.java fails on some systems for the ".rar" extension

Jaikiran Pai jpai at openjdk.org
Wed Jul 13 11:09:06 UTC 2022


On Tue, 12 Jul 2022 20:37:56 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add `application/x-rar-compressed` to the list of MIME types expected for the `rar` file extension.

The change looks fine to me.

On a related note, there is another PR which fixes a similar issue for a different extension type https://github.com/openjdk/jdk/pull/9459. This test has seen similar updates in recent past where we have been adding more such expected mime types to get the test passing. Reducing the number of file types we check here in this test might be a way to prevent these failures, but that too may not be a guaranteed way to prevent them.

-------------

Marked as reviewed by jpai (Reviewer).

PR: https://git.openjdk.org/jdk/pull/9475


More information about the nio-dev mailing list