com.atlassian.bamboo.ww2.interceptors
Class SimpleConversionErrorInterceptor

java.lang.Object
  extended by com.atlassian.bamboo.ww2.interceptors.SimpleConversionErrorInterceptor
All Implemented Interfaces:
com.opensymphony.xwork.interceptor.Interceptor, java.io.Serializable

public class SimpleConversionErrorInterceptor
extends java.lang.Object
implements com.opensymphony.xwork.interceptor.Interceptor

A simple ConversionErrorInterceptor that sets the value of the field directly back in the context rather than in the stack, which get evaluated as an OGNL expression. Workaround for: https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt

Since:
v3.4
See Also:
Serialized Form

Constructor Summary
SimpleConversionErrorInterceptor()
           
 
Method Summary
 void destroy()
           
 void init()
           
 java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConversionErrorInterceptor

public SimpleConversionErrorInterceptor()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface com.opensymphony.xwork.interceptor.Interceptor

init

public void init()
Specified by:
init in interface com.opensymphony.xwork.interceptor.Interceptor

intercept

public java.lang.String intercept(com.opensymphony.xwork.ActionInvocation invocation)
                           throws java.lang.Exception
Specified by:
intercept in interface com.opensymphony.xwork.interceptor.Interceptor
Throws:
java.lang.Exception


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.