[
https://issues.apache.org/jira/browse/WW-5528?focusedWorklogId=955971&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-955971
]
ASF GitHub Bot logged work on WW-5528:
--------------------------------------
Author: ASF GitHub Bot
Created on: 07/Feb/25 01:40
Start Date: 07/Feb/25 01:40
Worklog Time Spent: 10m
Work Description: kusalk commented on code in PR #1215:
URL: https://github.com/apache/struts/pull/1215#discussion_r1945844735
##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java:
##########
@@ -154,10 +142,10 @@
protected void processNormalFormField(FileItem item, String charset)
throws UnsupportedEncodingException {
try {
- LOG.debug("Item is a normal form field");
+ String fieldName = item.getFieldName();
+ LOG.debug("Item: {} is a normal form field", fieldName);
Review Comment:
Indeed - fixed!
Issue Time Tracking
-------------------
Worklog Id: (was: 955971)
Time Spent: 1h 20m (was: 1h 10m)
> Multipart uploads with invalid characters in file or field name are silently
> dropped
> ------------------------------------------------------------------------------------
>
> Key: WW-5528
> URL: https://issues.apache.org/jira/browse/WW-5528
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 6.7.2, 7.0.2
> Reporter: Kusal Kithul-Godage
> Priority: Major
> Fix For: 7.0.3, 6.7.3
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> They should instead be reported as errors via MultiPartRequest#getErrors
--
This message was sent by Atlassian Jira
(v8.20.10#820010)