Jens Offenbach created FELIX-5644:
-------------------------------------

             Summary: 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


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)

Reply via email to