[
https://issues.apache.org/jira/browse/SLING-11315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534965#comment-17534965
]
Bertrand Delacretaz commented on SLING-11315:
---------------------------------------------
The docs that you mention are about multiple servlets matching the current
request, which is fine and by design, when multiple servlets with _different
mount parameters_ match at different levels.
What we're talking about here is multiple servlets registered with the _exact
same_ mount parameters, like in [my new
test|https://github.com/apache/sling-org-apache-sling-servlets-resolver/commit/1603a0ecb2ab8b4395560c0d53d9e5569b68a568],
which I don't think ever makes sense.
> Reject duplicate servlet mount configurations
> ---------------------------------------------
>
> Key: SLING-11315
> URL: https://issues.apache.org/jira/browse/SLING-11315
> Project: Sling
> Issue Type: New Feature
> Components: Servlets
> Reporter: Adrian Kozma
> Priority: Major
>
> Multiple servlets having the same mount parameters should trigger an error.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)