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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b72
    • OS:
      os_x
    • Verification:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: