You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2014/05/14 20:19:15 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 ]

Martin Kočí updated MYFACES-3891:
---------------------------------

    Status: Patch Available  (was: Open)

> 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čí
>            Priority: Trivial
>         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)