This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/struts-site.git


The following commit(s) were added to refs/heads/asf-staging by this push:
     new 296b98d805 Updates stage by Jenkins
296b98d805 is described below

commit 296b98d8052ac4c91c8ccec1ea0e56bda295cc19
Author: jenkins <[email protected]>
AuthorDate: Fri Oct 23 05:45:29 2026 +0000

    Updates stage by Jenkins
---
 content/plugins/rest/index.html | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/content/plugins/rest/index.html b/content/plugins/rest/index.html
index cfb3f89dec..211761657f 100644
--- a/content/plugins/rest/index.html
+++ b/content/plugins/rest/index.html
@@ -558,6 +558,13 @@ constructors and <code class="language-plaintext 
highlighter-rouge">@Constructor
 request body, make sure they are reachable from an authorized property; see
 <a 
href="../../core-developers/struts-parameter-annotation.html#creator-bound-properties">Creator-bound
 properties</a>.</p>
 
+<p>A custom handler that implements only <code class="language-plaintext 
highlighter-rouge">ContentTypeHandler</code> is deserialized into a fresh 
instance of the action or
+model, and only authorized properties are copied back. Since Struts 7.5.0 that 
copy skips a property whose value is
+null or equal to the constructor default of a fresh instance, so values bound 
by <code class="language-plaintext highlighter-rouge">params</code> or loaded 
in <code class="language-plaintext highlighter-rouge">prepare()</code>
+survive a body that omits them (<a 
href="https://issues.apache.org/jira/browse/WW-5790";>WW-5790</a>). Two 
consequences: a body
+value equal to the constructor default is not applied over a differing 
existing value, and the constructor of the
+target runs twice per request on this path. Implement <code 
class="language-plaintext 
highlighter-rouge">AuthorizationAwareContentTypeHandler</code> to get exact 
semantics.</p>
+
 <h3 id="settings">Settings</h3>
 
 <p>The following settings can be customized. See the <a 
href="/core-developers/configuration-files">developer guide</a>.

Reply via email to