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

MimetypesFileTypeMap doesn't handle bad mime type data

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • generic
    • solaris_2.6
    • Verified

      There's no documentation of behavior of MimeTypesFileTypeMap when malformed mimetype data is
      supplied. (via a filename or input stream constructor argument, or via addMimeTypes()). MimeTypeFile, which provides the actual implementation traps exceptions,
      and dumps error messages to the console. There's a REMIND commment to 'handle me better'
      when the parsing fails

      The absence of defined behavior for this 'invalid' case is a JCK testing blocker.

            bshannon Bill Shannon (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: