[ 
https://issues.apache.org/jira/browse/SLING-7466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16350327#comment-16350327
 ] 

Carsten Ziegeler commented on SLING-7466:
-----------------------------------------

Adjusted the patch and cleary document what it handles and what not - while the 
patch does not handle all cases it's at least better than before

rev 0897a1d

> 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üß
>            Assignee: Carsten Ziegeler
>            Priority: Major
>             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