Patrice DUROUX created WW-5789:
----------------------------------
Summary: 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: Improvement
Components: Core
Affects Versions: 7.4.0, 7.3.0, 7.2.1
Reporter: Patrice DUROUX
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)