Bug 57637

Summary: PersistentValve always causes a new session to be created
Product: Tomcat 9 Reporter: Jeremy Boynes <jboynes>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: -----   
Hardware: All   
OS: All   

Description Jeremy Boynes 2015-02-25 16:00:47 UTC
When determining if a session should be persisted, PersistentValve calls getSessionInternal with no arguments which causes a new one to be allocated if none exists. It should pass false to avoid unnecessary sessions being allocated.

http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/PersistentValve.java?revision=1561138&view=markup#l131
Comment 1 Felix Schumacher 2015-02-25 21:16:07 UTC
Fixed in trunk.
Comment 2 Felix Schumacher 2015-02-26 19:42:16 UTC
Will be included in tomcat 8.0.21 and 7.0.60.