felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5611) BundleRepository must deal properly R5 index file with resources with relative path from the given repository’s URL
Date Wed, 24 May 2017 06:04:04 GMT

    [ https://issues.apache.org/jira/browse/FELIX-5611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16022359#comment-16022359
] 

ASF GitHub Bot commented on FELIX-5611:
---------------------------------------

GitHub user cfiehe opened a pull request:

    https://github.com/apache/felix/pull/109

    Fix regression caused by solving FELIX-5611. Repository#getURI() retu…

    …rns as before the initial URI specified at creation time of the repository.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cfiehe/felix FIX-5644

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/felix/pull/109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #109
    
----
commit 00edf07792732dfb114f225c81b639e38d79f33e
Author: Christoph Fiehe <christoph.fiehe@materna.de>
Date:   2017-05-24T05:45:16Z

    Fix regression caused by solving FELIX-5611. Repository#getURI() returns as before the
initial URI specified at creation time of the repository.

----


> BundleRepository must deal properly R5 index file with resources with relative path from
the given repository’s URL
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-5611
>                 URL: https://issues.apache.org/jira/browse/FELIX-5611
>             Project: Felix
>          Issue Type: Improvement
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-2.0.8
>            Reporter: Cristiano Gavião
>            Assignee: David Bosschaert
>             Fix For: bundlerepository-2.0.10
>
>
> 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:
> {quote}
> <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>
> {quote}
> But when I try to deploy any bundle using RepositoryAdmin or obr:deploy command, I'm
getting an exception: java.net.MalformedURLException: no protocol: plugins/ch.qos.logback.core_1.2.1.jar
> The proposed solution is to pass the URL of the repository to the parser and in case
of a non-absolute uri were found it will be resolved against the repository uri.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message