Nan Fan created SLING-3496:
------------------------------
Summary: Synthetic resource cannot be not resolved, but its
children can be resolved
Key: SLING-3496
URL: https://issues.apache.org/jira/browse/SLING-3496
Project: Sling
Issue Type: Bug
Components: ResourceResolver
Environment: OS X 10.8.5, JDK 1.6.0_65
Reporter: Nan Fan
The change in SLING-3482 causes a problem that synthetic resource cannot be not
resolved, but its children can be resolved in below scenarios:
Scenario 1:
Please refer attached bundle and source, I package a resource which parent
folder does not exist previously in jcr repository. The resource is declared in
pom as:
<Include-Resource>{maven-resources},src/main/scripts</Include-Resource>
<Sling-Bundle-Resources>/apps/newfolder1/myres1</Sling-Bundle-Resources>
After install bundle, it does return 404 for url '/apps/newfolder1.json' and
returns json for '/apps/newfolder1/myres1.json'.
Scenario 2:
The resource.path in esp script returns '<name>.<selector>.<extension>' for
Synthetic resources. The code is in
bundles/extensions/explorer/src/main/resources/libs/sling/servlet/default/explorer/node.esp)
var path = resource.path;
it will return '/libs.explorer.node.html' if I'm visiting url
'/libs.explorer.node.html' where '/libs' is a synthetic resource.
--
This message was sent by Atlassian JIRA
(v6.2#6252)