[ 
http://www.stripesframework.org/jira/browse/STS-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11810#action_11810
 ] 

Ben Gunter commented on STS-688:
--------------------------------

It was intentionally designed this way. Even basic servlet mappings behave this 
way. Whatever you bind the servlet to effectively acts as a prefix, and 
everything after that prefix is accessible by calling 
HttpServletRequest.getPathInfo(). There is also one little-known feature of 
Stripes that would be broken if "extra path info" were ignored. That is, the 
event name may be specified in the request path, as in /path/to/bean/eventName 
instead of using parameters. Because it would break backward compatibility and 
generally oppose how servlets have always worked, I don't think we can make 
this change.

> Resolving UrlBindings incorrectly: an unbound URL does not yield a 404 error
> ----------------------------------------------------------------------------
>
>                 Key: STS-688
>                 URL: http://www.stripesframework.org/jira/browse/STS-688
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.5.1
>            Reporter: Oscar Westra van Holthe - Kind
>            Priority: Minor
>         Attachments: STS-688.patch
>
>
> I have several ActionBean classes bound with these:
> @UrlBinding("/")
> @UrlBinding("/search/{text}")
> @UrlBinding("/profile")
> @UrlBinding("/admin")
> @UrlBinding("/admin/{username}")
> In addition to these, I have custom error pages defines for HTTP codes 403, 
> 404 and 500.
> When I navigate to /foobar I get the page for /, instead of the custom 404 
> error I expected.
> What goes wrong here is that the closest match, @UrlBinding("/"), has no 
> parameters. Therefore, it cannot match.
> The bug probably is in UrlBindingFactory.getBindingPrototype(String path); it 
> should check if a binding can match the URI. This probably only means an 
> added check to see if the binding has a parameter that can be filled in.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to