hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCORE-47) HttpRequestHandlerRegistry results are ambiguous
Date Wed, 21 Feb 2007 15:31:05 GMT

    [ 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.


> 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: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org

View raw message