struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] 01/01: WW-5096 Fixes params overwriting
Date Fri, 13 Nov 2020 16:20:44 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5096-fix-static
in repository https://gitbox.apache.org/repos/asf/struts.git

commit 9ed004f6130439e0dbd79a114c7e0b4298dabc21
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Fri Nov 13 17:20:23 2020 +0100

    WW-5096 Fixes params overwriting
---
 .../opensymphony/xwork2/interceptor/StaticParametersInterceptor.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/src/main/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptor.java
b/core/src/main/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptor.java
index 6ec572a..f060d5e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptor.java
+++ b/core/src/main/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptor.java
@@ -237,7 +237,8 @@ public class StaticParametersInterceptor extends AbstractInterceptor {
             }
         } else {
             if (newParams != null) {
-                combinedParams = combinedParams.withExtraParams(newParams);
+                HttpParameters newHttpParameters = HttpParameters.create(newParams).build();
+                combinedParams = combinedParams.withParent(newHttpParameters);
             }
             if (previousParams != null) {
                 combinedParams = combinedParams.withParent(previousParams);


Mime
View raw message