MyFaces extensions filter creates a session
-------------------------------------------

                 Key: TOMAHAWK-1275
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1275
             Project: MyFaces Tomahawk
          Issue Type: Improvement
          Components: ExtensionsFilter
    Affects Versions: 1.1.6
            Reporter: Ondrej Svetlik


The session is always created here:
at 
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279):
                ServletContext servletContext = request
                        .getSession().getServletContext();

The method is called here:
        at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:126)

But in the doFilter() method servlet context is already known so it is not 
necessary to get it through a session - you may pass it to getInstance to avoid 
session creation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to