[
https://issues.apache.org/jira/browse/HTTPCORE-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474730
]
Roland Weber commented on HTTPCORE-47:
--------------------------------------
Hi Oleg,
I don't know what Spring does exactly. The best-match comparison is meant to
disambiguate the patterns, and that falls short.
There are two easy ways to disambiguate:
- favor pattern* over *pattern (or vice versa)
- use a LinkedHashMap and favor the pattern added first (or last)
Given the simplicity of either decision, I don't think we should leave the
ambiguity in there.
cheers,
Roland
> HttpRequestHandlerRegistry results are ambiguous
> ------------------------------------------------
>
> Key: HTTPCORE-47
> URL: https://issues.apache.org/jira/browse/HTTPCORE-47
> Project: HttpComponents Core
> Issue Type: Bug
> Components: HttpCore
> Reporter: Roland Weber
> Priority: Minor
>
> HttpRequestHandlerRegistry uses pattern matching to determine the handler to
> use.
> The best match comparison is exclusively based on pattern length and
> therefore ambiguos:
> patterns "/ma*" and "*tch" both match "/match".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]