Review Request: JDK-7142921,(fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04

Dan Xu dan.xu at oracle.com
Wed Nov 28 23:45:00 PST 2012


I have updated my fix accordingly and uploaded it to webrev at 
http://cr.openjdk.java.net/~dxu/7142921/webrev.02/. Please take a 
review. Thanks!

-Dan

On Wed 28 Nov 2012 03:27:20 AM PST, Alan Bateman wrote:
> 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
>
>
>


More information about the nio-dev mailing list