You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/09/23 10:01:04 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14904122#comment-14904122 ]
ASF subversion and git services commented on KNOX-599:
------------------------------------------------------
Commit f165a6d1901bb5023faba2d61eb5d256012b34eb in knox's branch refs/heads/master from [~kevin.minder]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=f165a6d ]
KNOX-599: Template with {**} in queries are expanded with =null for query params without a value
> 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)