You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Cristiano Gavião <cv...@gmail.com> on 2017/04/07 18:59:43 UTC
[bundlerepository] RepositoryAdmin.discoverResources is returning
wrong uri
Hello all,
I'm facing a problem and would like some advice.
I've created some index.xml (R5) files using a tool that was based on
old bindex tool. since those files will be hosted in a server the url
attribute of bundles and other resources are using relative path (what I
think is the right approach since we don't know the real address of the
server at this time:
<repo:capability namespace="osgi.content">
<repo:attribute name="osgi.content"
value="2ab00a18d414d1c43a7f8ba286f16f323c6b940ca775cdfd974dd6c127a35b25"/>
<repo:attribute name="url"
value="plugins/ch.qos.logback.core_1.2.1.jar"/>
<repo:attribute name="size" type="Long" value="473113"/>
<repo:attribute name="mime" value="application/vnd.osgi.bundle"/>
</repo:capability>
But when I try to deploy any bundle using RepositoryAdmin or obr:deploy
command, I'm getting: java.net.MalformedURLException: no protocol:
plugins/ch.qos.logback.core_1.2.1.jar
wouldn't RepositoryAdmin be smart enough and concat the url of the added
repository with the resources url?
thanks,
Cristiano
Re: [bundlerepository] RepositoryAdmin.discoverResources is returning
wrong uri
Posted by Cristiano Gavião <cv...@gmail.com>.
Ok, I found that currently BundleRepository doesn't well support R5
index files with "osgi.content" capability's "url" attribute using
relative path uri.
So, I've created an improvement issue here:
https://issues.apache.org/jira/browse/FELIX-5611 and also provided a
pull request.
It would be great if any commiter would take a look.
regards,
Cristiano
On 07/04/2017 15:59, Cristiano Gavi�o wrote:
>
> But when I try to deploy any bundle using RepositoryAdmin or
> obr:deploy command, I'm getting: java.net.MalformedURLException: no
> protocol: plugins/ch.qos.logback.core_1.2.1.jar
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org