[
https://issues.apache.org/jira/browse/FELIX-4888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551882#comment-14551882
]
Carsten Ziegeler commented on FELIX-4888:
-----------------------------------------
In addition to that, we need to support the following features from the servlet
spec:
- path mapping, e.g. /foo/*
- extension mapping, e.g. *.html
- default mapping "" - path info is null, path is the full path
- root mapping, exact match to the root, pathinfo is /, path is ""
- exact match, e.g. /foobar
An exact pattern, e.g. /foo means it matches /foo, but also /foo/* !
The order is:
1. Exact match (including root match)
2. Longest path match
3. Extension matching
4. Default mapping
> ServletHandler's are not sorted by longest matching path
> --------------------------------------------------------
>
> Key: FELIX-4888
> URL: https://issues.apache.org/jira/browse/FELIX-4888
> Project: Felix
> Issue Type: Sub-task
> Components: HTTP Service
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: http.base-3.0.0
>
>
> If more than one servlet handler matches the request, the result is sorted by
> service ranking and not by longest matching path.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)