Skip to content

Commit

Permalink
AMBARI-25447. Multiple filter conditions not working in Ambari workfl…
Browse files Browse the repository at this point in the history
…ow manager view (sree) (apache#3160)
  • Loading branch information
sreenaths authored and venkatasairamlanka committed Dec 13, 2019
1 parent a4557c6 commit 8440289
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
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;
Expand Down Expand Up @@ -148,6 +150,11 @@ public String convertParamsToUrl(MultivaluedMap<String, String> parameters) {
}
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;
Expand Down

0 comments on commit 8440289

Please sign in to comment.