[
https://issues.apache.org/jira/browse/WW-5602?focusedWorklogId=998600&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-998600
]
ASF GitHub Bot logged work on WW-5602:
--------------------------------------
Author: ASF GitHub Bot
Created on: 04/Jan/26 16:59
Start Date: 04/Jan/26 16:59
Worklog Time Spent: 10m
Work Description: sonarqubecloud[bot] commented on PR #1511:
URL: https://github.com/apache/struts/pull/1511#issuecomment-3708249350
## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1511)
**Quality Gate failed**
Failed conditions
 [22 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1511&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [42.3% Coverage on New
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1511&metric=new_coverage&view=list)
(required ≥ 80%)
 [3.4% Duplication on New
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1511&metric=new_duplicated_lines_density&view=list)
(required ≤ 3%)
 [E Security Rating on New
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1511)
(required ≥ A)
 [E Reliability Rating on New
Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1511)
(required ≥ A)
[See analysis details on SonarQube
Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1511)
##
 Catch issues before they fail your Quality Gate with our IDE extension
 [SonarQube for
IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request)
Issue Time Tracking
-------------------
Worklog Id: (was: 998600)
Time Spent: 50m (was: 40m)
> Can't specify empty charset on StreamResult
> -------------------------------------------
>
> Key: WW-5602
> URL: https://issues.apache.org/jira/browse/WW-5602
> Project: Struts 2
> Issue Type: Bug
> Components: Dispatch Filter
> Affects Versions: 6.8.0
> Reporter: Andrea Vettori
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 6.9.0, 7.2.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> When serving binary files using StreamResult the Content Type header should
> NOT contain a charset specification.
> If the charset is not specified in the StreamResult, UTF-8 is automatically
> applied.
> If the charset is specified with an expression, and the expression evaluates
> to null/empty string, an invalid
> ;charset=
> specification is added to the content-type header on the StreamResult.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
