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

Alan Bateman alanb at openjdk.org
Wed Jul 13 11:15:58 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.

> On a related note, there is another PR which fixes a similar issue for a different extension type #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.

I agree. The test originally tested a tiny set of MIME types but it was expanded greatly in recent releases and I think should be looked at again.

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

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


More information about the nio-dev mailing list