You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Werner Punz (JIRA)" <de...@myfaces.apache.org> on 2012/05/09 09:46:45 UTC

[jira] [Commented] (MYFACES-3543) java.lang.IllegalArgumentException: text/xml on ajax requests with webkit mobile browser

    [ https://issues.apache.org/jira/browse/MYFACES-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271192#comment-13271192 ] 

Werner Punz commented on MYFACES-3543:
--------------------------------------

a quick workaround would be to add the accept header manually for webkit in our ajax part. However in the end the xml check itself probably needs to be resolved, because empty accept headers are valid and mean by w3c spec that any type  is possible.

                
> java.lang.IllegalArgumentException: text/xml on ajax requests with webkit mobile browser 
> -----------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3543
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.7
>            Reporter: Marcus Büttner
>
> Mobile webkit browser doesn't send an accept header on ajax requests.
> java.lang.IllegalArgumentException:   text/xml
> at org.apache.myfaces.renderkit.html.HtmlRenderKitImpl.createResponseWriter(HtmlRenderKitImpl.java:299)
> at org.apache.myfaces.extensions.cdi.jsf2.impl.scope.conversation.InterceptedRenderKit.createResponseWriter(InterceptedRenderKit.java:56)
> at org.apache.myfaces.context.servlet.PartialViewContextImpl.getPartialResponseWriter(PartialViewContextImpl.java:344)
> at org.primefaces.context.PrimePartialViewContext.getPartialResponseWriter(PrimePartialViewContext.java:50)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira