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

Incorrect API Regions generated in features

    XMLWordPrintableJSON

Details

    Description

      In some cases the cpconverter generates an api-regions section with global exports for packages, where the bundles providing those packages are not actually listed in the feature. I have seen features with no bundles (just some configuration) and an api-regions section with lots of exports, which clearly couldn't be satisfied by the feature as it did not have any bundles at all.

      I believe that this might be caused by the fact that the DefaultFeaturesManager has the an apiRegionsExports field
      https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/master/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java#L101
      which is not cleared between features being processed, and as such the api-regions exports are bleeding between generated features.

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              davidb A. J. David Bosschaert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: