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

BootstrapInstaller will attempt (and fail) to start fragment bundles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Launchpad Base 2.1.0
    • Launchpad Base 2.2.0
    • Launchpad
    • None

    Description

      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(); }

      Attachments

        1. SLING-1210-fmeschbe.patch
          2 kB
          Felix Meschberger

        Activity

          People

            fmeschbe Felix Meschberger
            justinedelson Justin Edelson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: