You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (Jira)" <de...@myfaces.apache.org> on 2022/12/08 10:09:00 UTC

[jira] [Resolved] (MYFACES-4500) TCK: Issue2648IT: IllegalStateException should be thrown if current response has already been committed (During Ajax Request)

     [ https://issues.apache.org/jira/browse/MYFACES-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Andraschko resolved MYFACES-4500.
----------------------------------------
    Resolution: Fixed

> TCK: Issue2648IT: IllegalStateException should be thrown if current response has already been committed (During Ajax Request)
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4500
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4500
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 4.0.0-RC2
>            Reporter: Volodymyr Siedlecki
>            Priority: Major
>             Fix For: 4.0.0-RC3
>
>
> Background Issue: [https://github.com/eclipse-ee4j/mojarra/issues/2652]
> In a nutshell: if handling an ajax request, we should throw an IllegalStateException during a second redirect (if the one has been committed). 
> This is apparent in the MyFaces code below. We just complete the response in the ajax case ("isPartialRequest") without checking if it's been completed already.
> https://github.com/apache/myfaces/blob/93a47f3c78716f0ff3c01227ee1cd5972aeb965b/impl/src/main/java/org/apache/myfaces/context/servlet/ServletExternalContextImpl.java#L590-L600



--
This message was sent by Atlassian Jira
(v8.20.10#820010)