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/04/20 20:38:58 UTC

[jira] [Updated] (KNOX-357) Better handling of glob patterns in URL templates

     [ https://issues.apache.org/jira/browse/KNOX-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Minder updated KNOX-357:
------------------------------
    Fix Version/s:     (was: 0.6.0)
                   0.7.0

> Better handling of glob patterns in URL templates
> -------------------------------------------------
>
>                 Key: KNOX-357
>                 URL: https://issues.apache.org/jira/browse/KNOX-357
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 0.1.0
>            Reporter: Kevin Minder
>             Fix For: 0.7.0
>
>
> Currently a ** pattern in a URL template means 1 or more path segment.  There needs to be a way to specify zero or more.  It isn't clear if the meaning of ** should be changed or if something like *** should be added to specify this.  Note that when zero or more is supported care will need to be taken when extracting named parameters because an empty array/list may be returned.  Accordingly the case when a template is resolved and it contains a parameter with zero values needs to be handled.  For example a template like this s://h:p/prefix/{path}/suffix, if path is an empty list the expansion should be s://h:p/prefix/suffix and not s://h:p/prefix//suffix.



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