You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2018/02/05 15:10:00 UTC

[jira] [Resolved] (SLING-7466) EntityResourceList cleaning up resource instead of updating

     [ https://issues.apache.org/jira/browse/SLING-7466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Munteanu resolved SLING-7466.
------------------------------------
    Resolution: Fixed

With the merge of the unit test by [~dsuess] I think this is good enough to resolve.

> 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)