You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bruno Marti (JIRA)" <de...@myfaces.apache.org> on 2009/08/05 07:45:14 UTC

[jira] Created: (MYFACES-2306) ContentTypeList does not contain a supported content type image/gif

ContentTypeList does not contain a supported content type image/gif
-------------------------------------------------------------------

                 Key: MYFACES-2306
                 URL: https://issues.apache.org/jira/browse/MYFACES-2306
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.7
         Environment: Windows, jre 1.5, Borland Application Server 6.7, Tomcat 5.5.17
            Reporter: Bruno Marti


There is an strange behavior on borlands application server, IIOP protocol and IE
First jsf request has no requestHeaderMap and will produce error:
   ContentTypeList does not contain a supported content type image/gif

see:
org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.createResponseWriter()
..
selectedContentType = HtmlRendererUtils.selectContentType(contentTypeListString);
..
will produce an exception in selectContentType()


Patch like this and the default character encoding will be set and everything works fine
..
        try {
            selectedContentType = HtmlRendererUtils.selectContentType(contentTypeListString);
        } catch (Exception ex) {
            log.warn(ex);
        }
..


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.