You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jonathan S Fisher (Jira)" <de...@myfaces.apache.org> on 2020/01/14 15:27:00 UTC

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

Jonathan S Fisher created MYFACES-4317:
------------------------------------------

             Summary: 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


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)