You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/31 16:46:04 UTC

[jira] [Commented] (FELIX-5644) Repository#getURI() is no longer unique in case of XML-based repositories

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

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

Github user asfgit closed the pull request at:

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


> Repository#getURI() is no longer unique in case of XML-based repositories
> -------------------------------------------------------------------------
>
>                 Key: FELIX-5644
>                 URL: https://issues.apache.org/jira/browse/FELIX-5644
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Jens Offenbach
>            Assignee: David Bosschaert
>             Fix For: bundlerepository-2.0.12
>
>
> Because of a regression introduced by fixing FELIX-5611, the URI returned by {{Repository#getURI()}} is no longer unique in case of xml-based repository URIs. You cannot delete a repository using {{RepositoryAdmin#removeRepository(Repository#getURI()))}} when you use xml documents.
> {code}
> Repository firstRepository = repositoryAdmin.addRepository("file:///C:/Users/myuser/repo_for_optional_resources.xml");
> System.out.println(firstRepository.getURI());
> Repository secondRepository = repositoryAdmin.addRepository("file:///C:/Users/myuser/repo_for_mandatory.xml")
> System.out.println(secondRepository.getURI());
> {code}
> Result:
> {code}
> file:/C:/Users/myuser/
> file:/C:/Users/myuser/
> {code}
> The repositories are registered in the repository map with the original URIs, so that there is now way to remove a repository without knowing the initial URI under which it was registered.



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