History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1340
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Rainer Hermanns
Reporter: Warren Blanchet
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebWork

ScopeInterceptor caches key in instance variable

Created: 16/Aug/06 03:28 PM   Updated: 29/Aug/06 04:04 PM
Component/s: Interceptors
Affects Version/s: 2.2.2
Fix Version/s: 2.2.4

File Attachments: 1. Zip Archive Reproduction.zip (10 kb)
2. Text File ScopeInterceptor.java.patch (0.8 kb)

Environment: JBoss 4.0.4, java 1.5.0_06, Mac OS X 10.4.7


 Description  « Hide
In ScopeInterceptor.getKey(), the value determined for CLASS or ACTION configurations is cached in the instance variable "key". In the case where the same interceptor instance is used for multiple action invocations, this results in only one key being used for different actions. The attached reproduction works in JBOSS (perhaps plain Tomcat as well), but does not reproduce the bug in Quickstart. I assume this is because in the Quickstart environment, a new instance of the interceptor is created every time.

 All   Comments   Change History      Sort Order:
Warren Blanchet - [16/Aug/06 07:08 PM ]
I've attached a patch that resolves this problem in the environment I described earlier.

Rainer Hermanns - [29/Aug/06 04:04 PM ]
Thanks for the patch, fixed in CVS HEAD for 2.2.4