javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2103

ResourceHandlerImpl.createResource ignores the contentType parameter

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When a resource is created with an unknown file extension ResourceHandlerImpl will log warning messages like:

      com.sun.faces.context.ExternalContextImpl getMimeType
      WARNING: JSF1091: No mime type could be found for file a.bla. To resolve this, add a mime-type mapping to the applications web.xml.

      Even when the contentType is provided the message does not disappear.

        Activity

        Hide
        mirceatoma added a comment -

        Original issue found here: http://jira.icefaces.org/browse/ICE-6914

        Show
        mirceatoma added a comment - Original issue found here: http://jira.icefaces.org/browse/ICE-6914
        Hide
        mirceatoma added a comment -

        Attached patch that fixes this issue.

        Show
        mirceatoma added a comment - Attached patch that fixes this issue.
        Hide
        lowolf added a comment -

        When you are fix bug?

        Show
        lowolf added a comment - When you are fix bug?
        Hide
        Manfred Riem added a comment -

        Can you verify the problem still exists in the latest 2.1 release?

        Show
        Manfred Riem added a comment - Can you verify the problem still exists in the latest 2.1 release?
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Closing because of inactivity

        Show
        Manfred Riem added a comment - Closing because of inactivity

          People

          • Assignee:
            Unassigned
            Reporter:
            mirceatoma
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: