Review Request: JDK-7142921,(fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 28 03:27:20 PST 2012
On 28/11/2012 01:26, Dan Xu wrote:
> Alan,
>
> Thanks for your comments on MimeTypesFileTypeDetector.
>
> One concern about not using META-INF/mimetypes.default in
> resources.jar is that we may not be able to support Mac platform. As
> Mike mentioned yesterday, the system mime types file,
> /private/etc/apache2/mime.types, was not present in Mountain Lion
> (10.8). Then, we have to use the fallback mime types file. And the
> .mime.types in user's home directory is not a sure thing. I am not
> sure whether we can rely on that. Thanks!
>
> -Dan
>
I think the Mac needs a bit more investigation to determine if
/private/etc/apache2/mime.types is really the right source on the system
(I suspect not). A starting point to just support
${user.home}/.mime.types might be okay as at least that it editable by
developers to get the right mapping. I understand the desire to use
META-INF/mimetypes.default but I'm just concerned that it is invisible
and not configurable by users.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20121128/176ca7d2/attachment.html
More information about the nio-dev
mailing list