RFR: 8320943: Files/probeContentType/Basic.java fails on latest Windows 11 - content type mismatch
Brian Burkhalter
bpb at openjdk.org
Fri Dec 1 19:06:42 UTC 2023
On Fri, 1 Dec 2023 17:05:38 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>>> Does WIndows 11 have a (user) way to change the mapping?
>>
>> The mapping comes from the Windows registry so it could be changed but I wouldn't expect that to be common. Part of me wonders if this test should be reduced to a small number of extensions, 30 seems a lot to have to keep up to date with changes like this.
>
> Not related to the above comments, but it looks as if the Windows registry might only be able to handle one MIME type per extension. Also, I wonder how much other software was broken by this mapping change.
> It could be misleading to put a empty string into the expected set. Could the lists be created depending on the OS?
I agree. I'll see what I can change.
> Does WIndows 11 have a (user) way to change the mapping? For example, the mapping of .csv to vnd.ms-excel might not be correct if the user selected OpenOffice to handle .csv. I don't think we have a mechanism to cope with that.
No, we don't.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16916#discussion_r1412459024
More information about the nio-dev
mailing list