Details
-
Test
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
Servlets Resolver 2.0.8
-
None
Description
The ScriptSelectionTest covers only one way to specify scripts for POST requests with a selector. Imagine resource /a with resource type foo/bar. A POST request to /a.print.html will be handled by the following two scripts:
/apps/foo/bar/print/POST.esp
/apps/foo/bar/print.POST.esp
So far only the first case is tested. The attached patch adds a test for the second (IMHO more concise) syntax.
I stumbled across this, because I was looking for documentation on the topic. There is a wiki page[1] with some (outdated?) information on the topic, but I couldn't find much more. Maybe I just missed it. If not, it would be nice to get this documented on the sling website, with the examples section extended to cover POST requests with selectors.
[1] http://cwiki.apache.org/SLING/url-to-script-resolution.html