Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4500

TCK: Issue2648IT: IllegalStateException should be thrown if current response has already been committed (During Ajax Request)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.15, 2.3.10, 2.3-next-M7, 3.0.2, 4.0.0-RC2
    • 2.3.11, 3.0.3, 2.3-next-M8, 4.0.0-RC3
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              volosied Volodymyr Siedlecki
              volosied Volodymyr Siedlecki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: