ResourceUtil.getResourceSuperType should check for overwritten resource super
type
----------------------------------------------------------------------------------
Key: SLING-1107
URL: https://issues.apache.org/jira/browse/SLING-1107
Project: Sling
Issue Type: Bug
Components: API
Affects Versions: API 2.0.6
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Fix For: API 2.0.8
Currently the ResourceUtil.getResourceSuperType method relies on the resource
resolver to return the correct resource via getResource if the given resource
type is relative. This leads to problems if for example:
- the resource type a/b is searched
- a resource super type property is set at /libs/a/b
- a servlet is registered for a/b (for example a POST servlet)
In this case ResourceResolver.getResource("a/b") (correctly) returns the
synthetic resource pointing to /apps/a/b.
The correct solution is to traverse the search paths if the path is relative
and continue the traversal until a resource has a resource super type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.