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

EntityResourceList cleaning up resource instead of updating

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Installer Core 3.8.10
    • Fix Version/s: Installer Core 3.8.12
    • Component/s: Installer
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cziegeler Carsten Ziegeler
              Reporter:
              dsuess Dominik Süß
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: