Dirk Rudolph created SLING-10575:
------------------------------------

             Summary: Features w/ api-region w/o feature-origin result in 
broken bundle to feature mapping
                 Key: SLING-10575
                 URL: https://issues.apache.org/jira/browse/SLING-10575
             Project: Sling
          Issue Type: Bug
          Components: Feature Model
    Affects Versions: Installer Factory Feature Model 0.5.0
            Reporter: Dirk Rudolph
            Assignee: Dirk Rudolph


When installing a feature archive of a feature similar to the following

{code:json}
{
  "id":"com.exmaple:my-feature-pkg:slingosgifeature:tiera:12345-SNAPSHOT",
  "bundles":[
    {
      "id":"com.example:my-bundle:1.2.3-SNAPSHOT",
      "start-order":"20"
    }
  ],
  "api-regions:JSON|false":[
    {
      "name":"global",
      "exports":[
        "com.example.my"
      ]
    }
  ]
} {code}

A bundle to feature mapping like 

{code}
com.example:my-bundle:1.2.3-SNAPSHOT=
{code}

will be created in the feature's 
{{org.apache.sling.feature.apiregions.factory}} configuration. This is because 
the api-region does not specify any feature-origin(s).

For those cases the feature it self should be the origin of the bundle. 




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to