[
https://issues.apache.org/jira/browse/FELIX-5644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Bosschaert reassigned FELIX-5644:
---------------------------------------
Assignee: David Bosschaert
> 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
>
> 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)