[ 
https://issues.apache.org/jira/browse/SLING-4653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14509173#comment-14509173
 ] 

Carsten Ziegeler commented on SLING-4653:
-----------------------------------------

Traversal of the parent has been introduced with SLING-4311. I'm wondering if 
it's a use case for the  merging resource provider to go up the hierarchie?

> Resource merging properties are ignored if the direct parent of the read 
> resource does not exist
> ------------------------------------------------------------------------------------------------
>
>                 Key: SLING-4653
>                 URL: https://issues.apache.org/jira/browse/SLING-4653
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: Resource Merger 1.2.8
>            Reporter: Joel Richard
>            Priority: Critical
>
> If the parent of one of the merged resources does not exist, but another 
> resource between the merged resource of the same search path and root has 
> some resource merging properties attached, these properties are ignored in 
> MergingResourceProvider because resource.getParent returns null and then it 
> does not try to traverse to root anymore and therefore does not find these 
> properties.
> Example:
> /apps/a with sling:hideChildren=*
> /libs/a/b/c
> If you try to read /mnt/overlay/a/b, it will return null. On the other hand, 
> /mnt/overlay/a/b/c will return an unmodified merged resource.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to