[ 
https://issues.apache.org/jira/browse/WW-5789?focusedWorklogId=1049527&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1049527
 ]

ASF GitHub Bot logged work on WW-5789:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Oct/26 05:16
            Start Date: 23/Oct/26 05:16
    Worklog Time Spent: 10m 
      Work Description: lukaszlenart merged PR #2050:
URL: https://github.com/apache/struts/pull/2050




Issue Time Tracking
-------------------

    Worklog Id:     (was: 1049527)
    Time Spent: 0.5h  (was: 20m)

> 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: 0.5h
>  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)

Reply via email to