You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2014/08/06 23:03:13 UTC

[jira] [Updated] (MYFACES-3891) Don't write flash-scoped variables in ErrorPageWriter when FLASH_SCOPE_DISABLED=true

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

Leonardo Uribe updated MYFACES-3891:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.5
           Status: Resolved  (was: Patch Available)

I moved the parameter to MyfacesConfig class. Thanks to Martin Koci for provide this patch.

> Don't write flash-scoped variables in ErrorPageWriter when FLASH_SCOPE_DISABLED=true
> ------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3891
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3891
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Martin Kočí
>            Assignee: Leonardo Uribe
>            Priority: Trivial
>             Fix For: 2.2.5
>
>         Attachments: MYFACES-3891_ErrorPageWriter.patch, MYFACES-3891_FlashImpl.patch
>
>
> 1) in web.xml
> <context-param>
>     <param-name>org.apache.myfaces.FLASH_SCOPE_DISABLED</param-name>
>     <param-value>true</param-value>
>   </context-param>
> 2) ui:debug in .xhtml
> leads to: 
> throw new FlashScopeDisabledException("Flash scope was disabled by context param " 
>                 + FLASH_SCOPE_DISABLED_PARAM + " but erroneously accessed");
> the cause : ErrorPageWriter._writeVariables writes always the variables, regardless of FLASH_SCOPE_DISABLED



--
This message was sent by Atlassian JIRA
(v6.2#6252)