Kevin Minder created KNOX-1185:

             Summary: Routes and rewrite rules cannot distinguish resources 
from directories
                 Key: KNOX-1185
             Project: Apache Knox
          Issue Type: Bug
          Components: Server
    Affects Versions: 0.14.0
            Reporter: Kevin Minder

There is ambiguity for how URL patterns for resources (i.e. no trailing slash) 
and directories (i.e. trailing slash) are handled.  The first pattern added to 
a matcher will always take precedence and the second will be ignored.  For 
example consider the patterns "/oozie" and "/oozie/".  Both of these patterns 
will match "/oozie" and "/oozie/" making unique processing for each impossible. 

Fixing this issue may prove disruptive as a large number of service route and 
rewrite rules may inadvertently be taking advantage of this ambiguity.

I have created this test below which can be added to 
org/apache/knox/gateway/util/urltemplate/ to illustrate the 
// Code placeholder{code}

This message was sent by Atlassian JIRA

Reply via email to