Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6148

MapEntries get CHANGED event right after DELETE

    XMLWordPrintableJSON

    Details

      Description

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

      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
      

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

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cziegeler Carsten Ziegeler
                Reporter:
                bdelacretaz Bertrand Delacretaz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: