[
https://issues.apache.org/jira/browse/WW-5873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart updated WW-5873:
------------------------------
Fix Version/s: 7.6.0
> 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
> Priority: Minor
> Fix For: 7.6.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {\{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)