Commits

Anonymous committed 273c2d9

WW-1357 synchronized on the OgnlStackContext so we don't get any concurrency issues

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2855573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 8f659e9

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/interceptor/TokenSessionStoreInterceptor.java

             if (savedInvocation != null) {
                 // set the valuestack to the request scope
                 OgnlValueStack stack = savedInvocation.getStack();
+                Map context = stack.getContext();
                 request.setAttribute(ServletActionContext.WEBWORK_VALUESTACK_KEY, stack);
 
                 Result result = savedInvocation.getResult();
 
                 if ((result != null) && (savedInvocation.getProxy().getExecuteResult())) {
-                    result.execute(savedInvocation);
+                    synchronized (context) {
+                        result.execute(savedInvocation);
+                    }
                 }
 
                 // turn off execution of this invocations result