Dan Klco created SLING-9524:
-------------------------------

             Summary: Add Support for Bundle URL References
                 Key: SLING-9524
                 URL: https://issues.apache.org/jira/browse/SLING-9524
             Project: Sling
          Issue Type: New Feature
          Components: Repoinit
    Affects Versions: Repoinit JCR 1.1.26
            Reporter: Dan Klco
            Assignee: Dan Klco
             Fix For: Repoinit JCR 1.1.28


JCR RepoInit supports references to URLs using the 
{{org.apache.sling.jcr.repoinit.impl.RepositoryInitializer}} service _AND_ the 
OSGi framework supports resolving resources to bundles via the bundle:// URL 
protocol: 
https://docs.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html#getResource(java.lang.String)

However, (in Apache Felix at least) the OSGi container generates the Bundle 
URLs based on a UUID rather than a stable identifier (such as the Bundle's 
Symbolic Name):
https://github.com/apache/felix-dev/blob/master/framework/src/main/java/org/apache/felix/framework/URLHandlersBundleStreamHandler.java

While it is possible to resolve these UUID's at runtime, this requires an 
additional OSGi Component to resolve the Bundle URL and then create a 
configuration for the RepositoryInitializer.

Ideally, we would be able to use a URL to reference a bundle resource using the 
Symbolic Name, which would be resolved at runtime to the bundle UUID. 



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

Reply via email to