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

Full coverage aggregates nested under a partial coverage aggregate incorrectly deleted when a sibling resource is published

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Sling Eclipse IDE 1.0.4
    • Sling Eclipse IDE 1.0.6
    • IDE
    • None

    Description

      Consider the following content structure:

      - item [sling:Folder]
      \- config [sling:OsgiConfig]
      \- html.jsp [nt:file]
      

      When publishing a change on html.jsp, the config node is incorrectly deleted, as detected by the tracing code:

      | Worker-14 | 2014-10-23 21:37:36.905 | org.apache.sling.ide.impl-vlt | /debug | org.apache.sling.ide.impl.vlt.AddOrUpdateNodeCommand | processDeletedNodes | 139 | Deleting node /apps/example/item/config as it is no longer present in the local
       checkout |

      Other nt:file resources are not deleted when publishing. Also this does not happen unless the parent folder has a .content.xml file ; for an nt:folder parent the bug does not happen.

      Attachments

        Activity

          People

            rombert Robert Munteanu
            rombert Robert Munteanu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: