You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2026/02/18 14:34:00 UTC
[jira] [Work started] (WW-5615) Adapt to renamed methods in Apache Commons FileUpload 2.0.0-M5
[ https://issues.apache.org/jira/browse/WW-5615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on WW-5615 started by Lukasz Lenart.
-----------------------------------------
> Adapt to renamed methods in Apache Commons FileUpload 2.0.0-M5
> --------------------------------------------------------------
>
> Key: WW-5615
> URL: https://issues.apache.org/jira/browse/WW-5615
> Project: Struts 2
> Issue Type: Task
> Components: Core
> Affects Versions: 7.1.1
> Reporter: Markus Fischer
> Assignee: Lukasz Lenart
> Priority: Major
> Fix For: 7.2.0
>
>
> I fear these changes impact Struts2, if I am not mistaken. With Apache Commons FileUpload 2.0.0-M5 I get:
> ??java.lang.NoSuchMethodError: 'void org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload.setSizeMax(long)'??
> In the release notes of Apache Commons FileUpload 2.0.0-M5
> [[https://dist.apache.org/repos/dist/release/commons/fileupload/RELEASE-NOTES.txt|https://dist.apache.org/repos/dist/release/commons/fileupload/RELEASE-NOTES.txt]|https://dist.apache.org/repos/dist/release/commons/fileupload/RELEASE-NOTES.txt]
> we can see:
> * Rename MultipartInput.Builder.[get|set]PartHeaderSizeMax() to [get|set]MaxPartHeaderSize(). Thanks to Gary Gregory.
> * Rename MultipartInput.getPartHeaderSizeMax() to getMaxPartHeaderSize(). Thanks to Gary Gregory.
> * Rename AbstractFileUpload.[get|set]SizeMax() to AbstractFileUpload.[get|set]MaxSize(). Thanks to Gary Gregory.
> * Rename AbstractFileUpload.[get|set]FileSizeMax() to AbstractFileUpload.[get|set]MaxFileSize(). Thanks to Gary Gregory.
> * Rename AbstractFileUpload.[get|set]FileCountMax() to AbstractFileUpload.[get|set]MaxFileCount(). Thanks to Gary Gregory.
> So basically from ...SizeMax() to ...MaxSize()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)