Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Resolver 2.0.8
-
None
Description
As SLING-754 introduced/fixed registering servlets for non-GET methods with selectors (eg. /apps/myapp/selector.POST.servlet), the same should be possible for extensions: /apps/myapp/extension.POST.servlet
Use case: symmetric URLs when you import and export stuff at a given resource path:
Export = GET @ /some/path/foo.ext
Import/Update = POST @ /some/path/foo.ext
Currently you are forced to either use a selector for the POST case (/some/path/foo.ext.ext) or to have a sling resource type set on the /some/path/foo, but then you could only have a single POST servlet for that resource type, regardless of the extension (which is unpractical if you for example have a resource type like "calendar", but want to import various calendar formats, separated by their file extension).
Attachments
Attachments
Issue Links
- is depended upon by
-
SLING-1069 Servlets registered with for resourceTypes = sling/servlet/default responds to all extensions
- Closed
- is duplicated by
-
SLING-1173 Support selecting non-GET scripts as per the request extension
- Resolved