ALAN S created WW-5873:
--------------------------
Summary: struts.multipart.maxSizeOfFiles is not enforced by
JakartaMultiPartRequest and is checked too late by JakartaStreamMultiPartRequest
Key: WW-5873
URL: https://issues.apache.org/jira/browse/WW-5873
Project: Struts 2
Issue Type: Bug
Components: Core
Affects Versions: 7.5.0
Reporter: ALAN S
{\{JakartaMultiPartRequest}} never checks \{{struts.multipart.maxSizeOfFiles}},
so files larger than the configured total are accepted.
{\{JakartaStreamMultiPartRequest}} only checks it after the whole file has been
written to disk, so the limit does not bound disk writes.
Both parsers should reject a file that would push the total over
\{{maxSizeOfFiles}}, and the streaming parser should stop writing once the
limit is reached.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)