Hi,
This is a simple request, but will take someone about 5 to 15 minutes. I
tried to minimize the amount of time needed, as you'll have other priorities
as well.
What:
Evaluate a patch for STS-688 that changes cached URL binding prefixes.
Where:
Class: net.sourceforge.stripes.controller.UrlBindingFactory
Method: Set<String> getCachedPrefixes(UrlBinding binding)
Why:
To ensure that static URL bindings cannot be a prefix.
Examples:
- an ActionBean annotated with @UrlBinding("/profile") is, but should
not, be used to handle the path "/profile/oscar"
- an ActionBean annotated with @UrlBinding("/profile/{user}") is, and
should, be used to handle the path "/profile/oscar"
More information is in issue STS-688.
My tests:
- The patch works correctly against the code of both version 1.5.1 and a
fresh subversion snapshot.
- The paths mentioned in the issue, that resolved to a non-matching bindings
now yield a 404 error.
- Other paths, both with and without parameters, still resolve as they did.
I trust these tests completely test what I changed.
Kind regards,
Oscar
--
,-_ Oscar Westra van holthe - Kind http://www.xs4all.nl/~kindop/
/() )
(__ ( Inequality is the inevitable consequence of liberty.
=/ () -- Salvador De Madariaga - "Anarchy or Hierarchy" (1937)
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development