Dominik Süß created SLING-7466:
----------------------------------

             Summary: EntityResourceList cleaning up resource instead of 
updating
                 Key: SLING-7466
                 URL: https://issues.apache.org/jira/browse/SLING-7466
             Project: Sling
          Issue Type: Bug
          Components: Installer
    Affects Versions: Installer Core 3.8.10
            Reporter: Dominik Süß
             Fix For: Installer Core 3.8.12


In case of a replaced launchpad containing an unchanged resource the 
EntityResourceList is called for "addOrUpdate" of this Resource - in case the 
resource already exists but the digest differs the method currently drops the 
new resource without updating the existing one keeping the old dataUri.

The issue manifests if these RegisteredResources are currently in INSTALL state 
and the INSTALLED version gets dropped subsequently.

This isn't just a theoretical case but was observed for cases where a bundle in 
an n-1 version was patched to the same version provided in version n of 
launchpad and launchpad hasn't changed for n+1. If the jcr version is then 
removed the installation of the outdated registeredResource fails because of a 
wrong dataUri.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to