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 2010/12/10 16:39:06 UTC
[jira] Closed: (SLING-1210) BootstrapInstaller will attempt (and
fail) to start fragment bundles
[ https://issues.apache.org/jira/browse/SLING-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-1210.
-----------------------------------
> BootstrapInstaller will attempt (and fail) to start fragment bundles
> --------------------------------------------------------------------
>
> Key: SLING-1210
> URL: https://issues.apache.org/jira/browse/SLING-1210
> Project: Sling
> Issue Type: Bug
> Components: Launchpad
> Affects Versions: Launchpad Base 2.1.0
> Reporter: Justin Edelson
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: Launchpad Base 2.2.0
>
> Attachments: SLING-1210-fmeschbe.patch
>
>
> If you put a fragment bundle in the resource path scanned by BootstrapInstaller, it will attempt to start it, which fails because fragment bundles can't be started.
> I'll provide this as a proper patch soon. Here's an outline of the change:
> new method:
> private static boolean isFragment(Bundle bundle) {
> Dictionary headerMap = bundle.getHeaders();
> return headerMap.get(Constants.FRAGMENT_HOST) != null;
> }
> wrap bundle.start() with;
> if (!isFragment(bundle)) {
> bundle.start();
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.