You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Minder (JIRA)" <ji...@apache.org> on 2015/09/23 10:47:04 UTC
[jira] [Resolved] (KNOX-599) Template with {**} in queries are
expanded with =null for query params without a value
[ https://issues.apache.org/jira/browse/KNOX-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Minder resolved KNOX-599.
-------------------------------
Resolution: Fixed
> Template with {**} in queries are expanded with =null for query params without a value
> --------------------------------------------------------------------------------------
>
> Key: KNOX-599
> URL: https://issues.apache.org/jira/browse/KNOX-599
> Project: Apache Knox
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.6.0
> Reporter: Kevin Minder
> Assignee: Kevin Minder
> Fix For: 0.7.0
>
> Attachments: KNOX-599_001.patch
>
>
> A template like this
> {code}
> {scheme}://{host}:{port}/{path=**}?{**}
> {code}
> when matched with a URI like this
> {code}
> http://example.com/path?flag
> {code}
> and expanded with the same template will result a string like this
> {code}
> http://hortonworks.com:8888/top/mid/bot/file?flag=null&name=value
> {code}
> which is incorrect. The correct value should not contain =null and might look like this
> {code}
> http://hortonworks.com:8888/top/mid/bot/file?flag&name=value
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)