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

Aliases in MapEntries are removed in delete event of jcr:content present in the parent directory

    XMLWordPrintableJSON

    Details

      Description

      When a jcr:content node is deleted, it removes all the aliases present below that path

      For example:

      Let's say we have

          /
              - content
          	    - A
          	        - jcr:content
          	        - B
          	            - de_DE - has sling:alias de
          		    - en_GB - has sling:alias en
          	        - C
          		    - it_CH - has sling:alias it
      

      If /content/A/jcr:content node is removed, It deletes all the aliases (in-memory in the MapEntries) which start with /content/A/

      See: sling-resourceresolver:MapEntries.java (https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/org.apache.sling.resourceresolver-1.7.0/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java#L330)

        Attachments

          Activity

            People

            • Assignee:
              rombert Robert Munteanu
              Reporter:
              sagarmiglani Sagar Miglani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h