[
https://issues.apache.org/jira/browse/KNOX-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680448#comment-14680448
]
Larry McCay commented on KNOX-582:
----------------------------------
Hi [~jeffreyr97] - I will take a look at the patch a bit later today.
Thank you!
> 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
>
> Attachments: KNOX-582.patch
>
>
> 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)