Currently I am deploying a JCE provider bundle to AEM 561 (Apache Sling) using 
the Sling OSGI Installer.

During verification for strong encryption the JCE implantation tries to open a 
URLConnection to jcrinstall:/apps/something/install/bcprov-1.52.0.jar and 
complains about unknown protocol.

I had a deeper look into this topic and I figured out that it is hard to 
implement a URLStreamHandlerService in this case because the BundleLocation is 
currently used as location of the CodeSource but this location might change and 
so the URL would point to a none existing resource. (I resolved this for my 
project with an algorithm that compares all the nodesnames below the parent 
node of the URL target with the name of the URL... really ugly)

I'm not sure if the provider (in this case the OSGI installer) should provide a 
proper bundle location or should ensure that the bundle location points to the 
right resource respectively. In my eyes it would be more straight forward when 
the framework implementation provides a CodeSource with a location pointing to 
the actual code source (for apache felix the jar file the Class is loaded 
from). 

Anyway... I asked the second question about proper CodeSource location on the 
Apache Felix users mailinglist too.

Regards,
Dirk
-----Ursprüngliche Nachricht-----
Von: Felix Meschberger [mailto:fmesc...@adobe.com] 
Gesendet: Montag, 29. September 2014 07:51
An: users@sling.apache.org
Betreff: Re: jcrinstall URLStreamHandlerService

Hi Dirk

To my knowledges there does not exist such a service.

What could be an application/use case for such a jcrinstall: scheme handler ?

And, as always, contributions and patches are welcome :-)

Thanks
Felix

Am 28.09.2014 um 14:44 schrieb dirk.rudo...@t-systems.com:

> Hi all,
> 
> I'm just wondering if there is an implementation of URLStreamHandlerService 
> available for jcrinstall:// scheme?
> 
> Regards,
> Dirk

Reply via email to