FileUploadInterceptor depends on implementation of MultiPartRequestWrapper
--------------------------------------------------------------------------

                 Key: WW-2544
                 URL: https://issues.apache.org/struts/browse/WW-2544
             Project: Struts 2
          Issue Type: Bug
          Components: Core Interceptors
    Affects Versions: 2.0.11.1
            Reporter: David Waite


The FileUploadInterceptor depends on the class/implementation of 
MultiPartRequestWrapper. This has become an issue with my efforts to wrap the 
HttpServletRequest as part of an authentication interceptor (made an 
interceptor to access annotations on the action class/method). 

The wrapper is not an interface, which makes it difficult to capture and 
delegate to the framework-created instance. In addition, the wrapper does not 
retain the properties of the HttpServletRequestWrapper, i.e. I cannot simply 
subclass and pass an existing MultiPartRequestWrapper-ish type in to add or 
override functionality. As far as I can tell, either I subclass it to make a 
true wrapper (delegating all methods to the input request) or I have to change 
the logic that creates the MultiPartRequestWrapper to instead create a subtype 
that gives me a setUserPrincipal method.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to