You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/05/04 09:25:00 UTC

[jira] [Resolved] (SLING-3307) Updated launchpad bundle list is not reflected after upgrade

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

Carsten Ziegeler resolved SLING-3307.
-------------------------------------
    Resolution: Won't Fix

> Updated launchpad bundle list is not reflected after upgrade
> ------------------------------------------------------------
>
>                 Key: SLING-3307
>                 URL: https://issues.apache.org/jira/browse/SLING-3307
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>    Affects Versions: Launchpad Installer 1.2.2
>            Reporter: Robert Munteanu
>            Priority: Major
>         Attachments: SLING-3307-repro.zip
>
>
> This is a follow-up bug report for http://markmail.org/thread/6us2jyrkcz6wjwxr .
> I've run into a bug when trying to update an existing Sling launchad to add a new bundle. The steps I've taken were:
> * Create a launchpad ( using the maven-launchpad-plugin ) and executed the jar file
> * Updated the bundle list to include a new bundle and executed the jar file on top of the existing launchpad directory
> The end result was that the new bundle was not deployed.
> Digging in the code a bit, I've noticed that the upgrade goes well if I force the startup mode to update.
> The sling/conf/launchpad_timestamp.txt exists and is valid. It seems that the StartupManager.getSelfTimeStamp() method does not get the correct timestamp:
> * looks for the last-modified date of the jar loading StartupManager.class - org.apache.sling.launchpad.base.jar 
> * looks for the last-modified date of the jar loading LaunchpadContentProvider.class - still org.apache.sling.launchpad.base.jar
> * looks for the last-modified date of all the bundles from sling/startup folder
> The problem is that at this point, the new/modified bundles are not present in the sling/startup folder, so they are not taken into account. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)