This is an automated email from the ASF dual-hosted git repository.
pawan pushed a commit to branch release17.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-framework.gitThe following commit(s) were added to refs/heads/release17.12 by this push:
new 4cd7010 Fixed: Issue with opening a page via bookmark when the user is logged out (OFBIZ-10539)
4cd7010 is described below
commit 4cd701023c0e9f4b6ac5746a0ac658a07f75ea26
Author: Pawan Verma <
[hidden email]>
AuthorDate: Tue May 5 14:56:25 2020 +0530
Fixed: Issue with opening a page via bookmark when the user is logged out
(OFBIZ-10539)
Thanks: Ritesh Kumar for report and the patch and Girish for the review.
---
.../src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
index 7e6f341..bbebbfe 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java
@@ -305,6 +305,18 @@ public final class UtilHttp {
if (equalsIndex > 0) {
String name = token.substring(0, equalsIndex);
paramMap.put(name, token.substring(equalsIndex + 1));
+ String paramValue = UtilCodec.getDecoder("url").decode(token.substring(equalsIndex + 1));
+ if (UtilValidate.isEmpty(paramMap.get(name))) {
+ paramMap.put(name, paramValue);
+ } else {
+ if (paramMap.get(name) instanceof Collection<?>){
+ List<String> valueList = UtilGenerics.cast(paramMap.get(name));
+ valueList.add(paramValue);
+ paramMap.put(name, valueList);
+ } else {
+ paramMap.put(name, UtilMisc.toList(paramMap.get(name), paramValue));
+ }
+ }
}
}
}