[
https://issues.apache.org/jira/browse/FILEUPLOAD-342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved FILEUPLOAD-342.
----------------------------------------
Fix Version/s: 2.0.0-M1
Resolution: Fixed
Available in 2.0.0-M1
> FileUploadBase should not import HttpServletRequest
> ---------------------------------------------------
>
> Key: FILEUPLOAD-342
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-342
> Project: Commons FileUpload
> Issue Type: Improvement
> Affects Versions: 2.0.0
> Reporter: Martin Tzvetanov Grigorov
> Priority: Major
> Fix For: 2.0.0-M1
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> FileUploadBase has few deprecated methods which use
> 'javax.servlet.http.HttpServletRequest`.
>
> This causes class loading problem when using the new Jakarta based
> `JakSrvltFileUpload.isMultipartContent(jakartaRequest)` because
> javax.servlet.** in not on the classpath.
>
> Would it be OK to remove the deprecated methods in 2.0 ?
> The applications should use
> org.apache.commons.fileupload2.servlet.ServletFileUpload#isMultipartContent()
> or
> org.apache.commons.fileupload2.jaksrvlt.JakSrvltFileUpload#isMultipartContent()
> instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)