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 2020/01/14 15:36:00 UTC

[jira] [Commented] (MYFACES-4317) FaceletViewDeclarationLanguage creates a server session even on a Stateless view

    [ https://issues.apache.org/jira/browse/MYFACES-4317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17015171#comment-17015171 ] 

Thomas Andraschko commented on MYFACES-4317:
--------------------------------------------

I think its a duplicate of: https://issues.apache.org/jira/browse/MYFACES-4297

> FaceletViewDeclarationLanguage creates a server session even on a Stateless view
> --------------------------------------------------------------------------------
>
>                 Key: MYFACES-4317
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4317
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.12
>         Environment: Apache TomEE 7.0.6
>            Reporter: Jonathan S Fisher
>            Priority: Major
>
> FaceletViewDeclarationLanguage creates a server session even on a Stateless view. 
> The bug appears in this function
> {code:java}
>     protected String getResponseEncoding(FacesContext context, String orig)
>     {
>         String encoding = orig;
>         // see if we need to override the encoding
>         Map<Object, Object> m = context.getAttributes();
>         Map<String, Object> sm = context.getExternalContext().getSessionMap();
> {code}
> It looks like the intention was to _not_ create the session but not writing to it, however
> {code:java}
>  ExternalContext.getSessionMap() {code}
> will force it's creation.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)