https://issues.apache.org/bugzilla/show_bug.cgi?id=57089

            Bug ID: 57089
           Summary: Configuration of <SessionIdGenerator> element is lost
                    on reload
           Product: Tomcat 8
           Version: 8.0.14
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: knst.koli...@gmail.com

>From "Question of new SessionIdGenerator implementation." thread on dev@,
http://tomcat.markmail.org/thread/2lic23zbhesgftld

If reloading Manager( or Context), SessionIdGenerator is cleared in
ManagerBase.stopInternal() and re-created in ManagerBase.startInternal().

Expected: If there is <SessionIdGenerator> element in a <Manager> element,
restarting a web application should preserve the options set on it.

Actual: Any configuration options specified on <SessionIdGenerator>
configuration element are lost.

Workaround
-----------
A workaround is to specify attributes such as "sessionIdLength" on Manager
element.

Fix
----
The fix is probably to let SessionIdGenerator to implement Lifecycle interface.

The "this.sessionIdGenerator = null;" assignment in ManagerBase.stopInternal()
originates from r1044874. The old code before r1044874 was calling
"randoms.clear();" there. I think it is easier to expose that clear method via
Lifecycle.stop().

Technically, there was no bug in r1044874 itself, as that was just an internal
implementation change. It have not exposed SessionIdGenerator as a
configuration element.

The ability configure session id generator via an XML element was added later
in r1619056.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to