[
https://issues.apache.org/jira/browse/WW-5789?focusedWorklogId=1049464&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1049464
]
ASF GitHub Bot logged work on WW-5789:
--------------------------------------
Author: ASF GitHub Bot
Created on: 22/Oct/26 22:19
Start Date: 22/Oct/26 22:19
Worklog Time Spent: 10m
Work Description: sonarqubecloud[bot] commented on PR #2050:
URL: https://github.com/apache/struts/pull/2050#issuecomment-6352563318
## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=2050)
**Quality Gate passed**
Issues
 [0 New
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2050&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted
issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=2050&issueStatuses=ACCEPTED)
Measures
 [0 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=2050&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [100.0% Coverage on New
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2050&metric=new_coverage&view=list)
 [0.0% Duplication on New
Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=2050&metric=new_duplicated_lines_density&view=list)
<!
Issue Time Tracking
-------------------
Worklog Id: (was: 1049464)
Time Spent: 20m (was: 10m)
> default values are restored for some properties on ModelDriven bean
> -------------------------------------------------------------------
>
> Key: WW-5789
> URL: https://issues.apache.org/jira/browse/WW-5789
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.2.1, 7.3.0, 7.4.0
> Reporter: Patrice DUROUX
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 7.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Hello,
> Some curl tests on the same ModelDriven action (in a package that extends
> both rest-default and json-default) have changed their result regarding the
> Struts version and it is summary by:
> ||Client query||Struts 7.1.1||upper||
> |JSON|done|done|
> |form-data|done|failed|
> Since WW-5626 (or perhaps some related changes), the model bean of a
> ModelDriven action does not retain the values set by ParameterInterceptor
> unless it is null by default in a fresh instance otherwise the default value
> (in its constructor) overrides the client value.
> Looking at:
> https://struts.apache.org/core-developers/struts-parameter-annotation
> One solution we found is to set:
> {{struts.parameters.requireAnnotations=false}}
> But on model bean it should not be necessary to annotate if we understand
> well the documentation.
>
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)