Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8129632

(fs) Files.probeContentType returns null on Mac OS X

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • core-libs
    • b72
    • os_x
    • Verified

    Backports

      Description

        The content type probe mechanism depends on the existence of user.home/.mime.types which does not in general exist on Mac OS X unless expressly created by the user. Hence the return value "contentType" of

        Path path;
        String contentType = Files.probeContentType(path);

        will be null.

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                bpb Brian Burkhalter
                Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: