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

Key: WW-1341
Type: Bug Bug
Status: Closed Closed
Resolution: Not A Problem
Priority: Major Major
Assignee: Rainer Hermanns
Reporter: Joakim von Brandis
Votes: 0
Watchers: 0
Operations

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

JakartaMultiPartRequest mismatch with commons-fileupload library

Created: 23/Aug/06 05:09 AM   Updated: 29/Aug/06 03:19 PM
Component/s: Dispatch
Affects Version/s: 2.2.2
Fix Version/s: 2.2.4

Environment: Webwork 2.2.2 with commons-fileupload (v1.1 or 1.1.1)


 Description  « Hide
com.opensymphony.webwork.dispatcher.multipart.JakartaMultiPartRequest calls method org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest with argument of type org.apache.commons.fileupload.RequestContext.

<code>
ServletFileUpload upload = new ServletFileUpload(fac);
List items = upload.parseRequest(createRequestContext(servletRequest));
</code>

However, in v1.1 of ServletFileUpload, parseRequest takes a HttpServletRequest as only argument.
This is obviously due to library mismatch, however it does not work with commons-fileupload 1.1, which
is shipped with webwork 2.2.2.

 All   Comments   Change History      Sort Order:
Rainer Hermanns - [29/Aug/06 03:19 PM ]
This is not a problem....

In commons-fileupload <code>parseRequest(javax.servlet.http.HttpServletRequest httpServletRequest) </code> is deprecated,
not <code>parseRequest(org.apache.commons.fileupload.RequestContext requestContext)</code>
 
/**
     * @deprecated
     */
    public java.util.List parseRequest(javax.servlet.http.HttpServletRequest httpServletRequest) throws org.apache.commons.fileupload.FileUploadException { /* compiled code */ }

public java.util.List parseRequest(org.apache.commons.fileupload.RequestContext requestContext) throws org.apache.commons.fileupload.FileUploadException { /* compiled code */ }


hth,
Rainer