You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2020/11/13 16:20:44 UTC
[struts] 01/01: WW-5096 Fixes params overwriting
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 <lu...@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);