Bertrand Delacretaz created SLING-6148:
------------------------------------------

             Summary: MapEntries get CHANGED event right after DELETE
                 Key: SLING-6148
                 URL: https://issues.apache.org/jira/browse/SLING-6148
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
            Reporter: Bertrand Delacretaz
            Priority: Minor


Investigating SLING-6147 I see this in the logs when deleting a /content node:

{code}
13.10.2016 16:20:23.895 *DEBUG* [oak-executor-17] 
org.apache.sling.resourceresolver.impl.mapping.MapEntries onChange, 
type=REMOVED, path=/content
13.10.2016 16:20:23.895 *DEBUG* [oak-executor-17] 
org.apache.sling.resourceresolver.impl.mapping.MapEntries onChange, 
type=CHANGED, path=/content
13.10.2016 16:20:23.895 *DEBUG* [oak-executor-17] 
org.apache.sling.resourceresolver.impl.mapping.MapEntries doAddVanity getting 
/content
{code}

And MapEntries.isValidVanityPath() then fails as it's getting a null resource.

[~cziegeler] I suppose this is related to recent listener mechanism changes? 
Getting a CHANGED event after the DELETE doesn't seem correct.





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

Reply via email to