felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Walker (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5109) Wrong path matching for http and http whiteboard service
Date Thu, 19 Nov 2015 11:48:10 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013404#comment-15013404
] 

Rob Walker commented on FELIX-5109:
-----------------------------------

My bad - I think I missed the part that this is really in relation to the Http Whiteboard
Service not the HttpService per se.

I'm not that familiar with whiteboard services, but they do indeed seem to use /* matching
so I'll defer to those who understand and use this spec themselves.

As above, I don't believe we should be adding /* matching (or requirements) to our basic HttpService
though unless the spec calls for it.



> Wrong path matching for http and http whiteboard service
> --------------------------------------------------------
>
>                 Key: FELIX-5109
>                 URL: https://issues.apache.org/jira/browse/FELIX-5109
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http.base-3.0.0, http.base-3.0.2, http.jetty-3.1.0, http.jetty-3.1.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: http.base-3.0.4, http.jetty-3.1.4
>
>
> It seems we have some bugs in the path matching which result from different handling
between the http service and the servlet spec. 
> For the http service, an alias like "/foo" matches "/foo" and "/foo/*" - while for the
servlet spec "/foo" only matches "/foo" - exact match.
> Right now, in both cases "/foo/*" matches.
> For the servlet spec a pattern like "/foo/*" matches "/foo/something" but also "/foo".
Right now we don't handle the second case.



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

Mime
View raw message