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

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 1c867efd96 AMBARI-25447: Multiple filter conditions not working in WFM 
view (#3522)
1c867efd96 is described below

commit 1c867efd965f5dcd98174fec9e503b7afe534e7b
Author: Zhiguo Wu <[email protected]>
AuthorDate: Thu Nov 17 17:11:31 2022 +0800

    AMBARI-25447: Multiple filter conditions not working in WFM view (#3522)
---
 .../src/main/java/org/apache/oozie/ambari/view/Utils.java          | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/Utils.java 
b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/Utils.java
index 1ff68c98c8..c0459c6a7d 100644
--- 
a/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/Utils.java
+++ 
b/contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/Utils.java
@@ -29,6 +29,8 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.Map.Entry;
+import java.net.URLEncoder;
+import java.io.UnsupportedEncodingException;
 
 import javax.ws.rs.WebApplicationException;
 import javax.ws.rs.core.HttpHeaders;
@@ -148,6 +150,11 @@ public class Utils {
                        }
                        boolean firstVal = true;
                        for (String val : entry.getValue()) {
+                               try {
+                                       val = URLEncoder.encode(val, "UTF-8");
+                               } catch(UnsupportedEncodingException e) {
+                                       LOGGER.error(e.getMessage(), e);
+                               }
                                urlBuilder.append(firstVal ? "" : 
"&").append(entry.getKey())
                                                .append("=").append(val);
                                firstVal = false;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to