[ 
https://issues.apache.org/jira/browse/ATLAS-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099898#comment-16099898
 ] 

Nixon Rodrigues commented on ATLAS-1985:
----------------------------------------

This patch [^ATLAS-1985.patch] provide fix for url-encoding in Activeserver 
Filter where URL was encoded wrongly with HtmlQuoting.quoteHtmlChars method 
which is primarily meant for htmltext encoding.

Instead of using HtmlQuoting.quoteHtmlChars method used URLEncode.encode method 
to encode the URL.

> Regression : Basic/DSL Query fired on PASSIVE server redirects to ACTIVE 
> server , adding an extra "amp;" to the parameters
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1985
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1985
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating, 0.8.1-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: Nixon Rodrigues
>            Priority: Critical
>         Attachments: ATLAS-1985.patch
>
>
> 1. Fired the query 
> {code}
> http://PassiveHost:21000/api/atlas/discovery/search/fulltext?limit=100&query=hive_table
> {code}
> The query failed with 
> {code}
> {
> error: "dslQuery cannot be null cannot be null"
> }
> {code}
> The redirected URL is :
> {code}
> http://activehost:21000/api/atlas/discovery/search/fulltext?limit=100&query=hive_table
> {code}
> Redirection adds an extra "amp;" and ignores rest of the query after the 
> first parameter.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to