[
https://issues.apache.org/jira/browse/WW-5340?focusedWorklogId=883623&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-883623
]
ASF GitHub Bot logged work on WW-5340:
--------------------------------------
Author: ASF GitHub Bot
Created on: 06/Oct/23 04:56
Start Date: 06/Oct/23 04:56
Worklog Time Spent: 10m
Work Description: kusalk commented on code in PR #760:
URL: https://github.com/apache/struts/pull/760#discussion_r1348243095
##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java:
##########
@@ -142,26 +142,22 @@ protected void processNormalFormField(FileItem item,
String charset) throws Unsu
}
long size = item.getSize();
- if (size == 0) {
- values.add(StringUtils.EMPTY);
- } else if (size > maxStringLength) {
+ if (size > maxStringLength) {
+ LOG.debug("Form field {} of size {} bytes exceeds limit of
{}.", item.getFieldName(), size, maxStringLength);
Review Comment:
Not sure a field name can even contain newline characters but anyway
SonarCloud is happy now
Issue Time Tracking
-------------------
Worklog Id: (was: 883623)
Time Spent: 5h 20m (was: 5h 10m)
> Introduce optional AST node exclusion list
> ------------------------------------------
>
> Key: WW-5340
> URL: https://issues.apache.org/jira/browse/WW-5340
> Project: Struts 2
> Issue Type: Improvement
> Components: Core
> Reporter: Kusal Kithul-Godage
> Priority: Minor
> Fix For: 6.4.0
>
> Time Spent: 5h 20m
> Remaining Estimate: 0h
>
> Enhance security by implementing an optional exclusion list (in struts.xml)
> where applications can specify AST nodes that are not required in their
> applications or are known to carry higher security risk.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)