Class SimpleConversionErrorInterceptor

  • All Implemented Interfaces:
    com.opensymphony.xwork2.interceptor.Interceptor, Serializable

    public class SimpleConversionErrorInterceptor
    extends Object
    implements com.opensymphony.xwork2.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 Detail

      • SimpleConversionErrorInterceptor

        public SimpleConversionErrorInterceptor()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.opensymphony.xwork2.interceptor.Interceptor
      • init

        public void init()
        Specified by:
        init in interface com.opensymphony.xwork2.interceptor.Interceptor
      • intercept

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