Markus Fischer created WW-5615:
----------------------------------
Summary: 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
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)