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

vsairam pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 8440289  AMBARI-25447. Multiple filter conditions not working in 
Ambari workflow manager view (sree) (#3160)
8440289 is described below

commit 8440289188d25faa6fc1e4bdc7eb1e6e19ca53c9
Author: Sreenath Somarajapuram <somarajapu...@gmail.com>
AuthorDate: Fri Dec 13 13:21:01 2019 +0530

    AMBARI-25447. Multiple filter conditions not working in Ambari workflow 
manager view (sree) (#3160)
---
 .../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 1ff68c9..c0459c6 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;

Reply via email to