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

Jeffrey E  Rodriguez commented on KNOX-582:
-------------------------------------------

More details.
Found this while debugging issue on oozie web interface through Knox. Noticed 
oozie jobs will not show and that we are getting 404 

GET /oozie/v2/jobs?user.name=guest&filter=null&timezone=GMT&_dc=1439217506123 
HTTP/1.1

returns 404 "The request sent by the client was syntactically incorrect."

rather than

GET /oozie/v2/jobs?user.name=guest&filter=&timezone=GMT&_dc=1439217506123 
HTTP/1.1

> Query Parameter rewrite does not honor empty string value
> ---------------------------------------------------------
>
>                 Key: KNOX-582
>                 URL: https://issues.apache.org/jira/browse/KNOX-582
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.5.0, 0.6.0
>         Environment: Linux Redhat all versions
>            Reporter: Jeffrey E  Rodriguez
>             Fix For: 0.7.0
>
>
> Query Parameter rewrite doesn't honor empty string value.
> e.g.
> The folowing URL
> "http://localhost:11000/oozie/v2/jobs?_dc=1438899557070&filter=&timezone=GMT";
> has an empty string value.
> Giving the following rewrite rule:
> <rule dir="IN" name="OOZIEUI/oozie/query" 
> pattern="*://*:*/**/oozie/{**}?{**}">
>     <rewrite template="{$serviceUrl[OOZIEUI]}/{**}?{**}"/>
>   </rule>
> Will rewrite the query parameter into:
> _dc=1438899557070&filter=null&timezone=GMT"
> Where the filter=null is passed to oozie it throws an exception. 
> Knox should honor the original query parameters even in the case where
> they are empty. Empty value meaning an empty string vs a "null". The reason 
> being is that end point services may assign different semantics
> to having empty strings.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to