[jboss-jira] [JBoss JIRA] (WFLY-12739) Flash Scope is not cleared when JSF1095 is occurred

Bartosz Spyrko (Jira) issues at jboss.org
Thu Oct 31 12:51:01 EDT 2019


     [ https://issues.jboss.org/browse/WFLY-12739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bartosz Spyrko moved JBEAP-17909 to WFLY-12739:
-----------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-12739  (was: JBEAP-17909)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: JSF
                           (was: JSF)
    Affects Version/s:     (was: 7.2.5.CR1)
        Fix Version/s:     (was: 7.3.0.GA)


> Flash Scope is not cleared when JSF1095 is occurred
> ---------------------------------------------------
>
>                 Key: WFLY-12739
>                 URL: https://issues.jboss.org/browse/WFLY-12739
>             Project: WildFly
>          Issue Type: Bug
>          Components: JSF
>            Reporter: Bartosz Spyrko
>            Assignee: Bartosz Spyrko
>            Priority: Major
>
> If committing the response for file download processing and using Flash Scope in the action method are combined as the following code, the Flash Scope will not be cleared in subsequent requests.
> {code:java}
> try {
>     // The response is committed by following code.
>     // Therefore, mojarra can not set csfcfc Cookie to identify FlashScope.
>     externalContext.responseFlushBuffer();
>     facesContext.responseComplete();
> } catch (Exception e) {
>     e.printStackTrace();
> }
> Flash flash = FacesContext.getCurrentInstance().getExternalContext().getFlash();
> flash.put("business", businessMap);
> {code}
> In other words, if the below log shows in server.log, the Flash Scope will not be cleared in subsequent requests.
> {noformat}
> 2019-10-28 10:38:09,180 WARNING [javax.enterprise.resource.webcontainer.jsf.flash] (default task-1) JSF1095: The response was already committed by the time we tried to set the outgoing cookie for the flash.  Any values stored to the flash will not be available on the next request.
> {noformat}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list