[ 
https://issues.apache.org/jira/browse/SLING-7018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Pauls resolved SLING-7018.
-------------------------------
    Resolution: Fixed

Yes, it looks like we are always removing all mapping for the parent when in 
reality we should only remove those mapping for which something changed. 
Furthermore, it seems like we are not matching subresources correctly either. 

[~bupauli], it turned out to be a little bit more complicated but I think I 
fixed it in master in r1802818. 

I'm resolving this issue (please reopen if it doesn't work for you).

> To many alias map entries getting removed from memory map when a resource is 
> getting deleted
> --------------------------------------------------------------------------------------------
>
>                 Key: SLING-7018
>                 URL: https://issues.apache.org/jira/browse/SLING-7018
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 1.5.22
>            Reporter: Burkhard Pauli
>            Assignee: Karl Pauls
>            Priority: Critical
>
> Steps to reproduce the issue:
> 1. Create a jcr:content resource with the property sling:alias set to 'foo' 
> (e.g. at /content/test/page1/jcr:content)
> 2. Create another jcr:content resource withe the property sling:alias to 
> 'bar' at the same parent resource (e.g. at /content/test/page2/jcr:content)
> 4. Make sure that the 'Optimize alias resolution' feature of the JCR Resource 
> Resolver Factory is enabled
> => As expected a request to /content/test/foo and /content/test/bar is 
> getting mapped to page1 and page2
> 5. Create a child content resource at /content/test/page2/jcr:content/title 
> with some example property
> 6. Delete the child content resource from step 5.
> Expected:
>  /content/test/foo and /content/test/bar are still mapped to  
> /content/test/page1 and /content/test/page2
> Observed:
> Only the map entry for /content/test/foo can still be mapped to page1, all 
> other map entries of the same parent level at /content/test are removed.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to