Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5644

Repository#getURI() is no longer unique in case of XML-based repositories

    XMLWordPrintableJSON

    Details

      Description

      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.

      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());
      

      Result:

      file:/C:/Users/myuser/
      file:/C:/Users/myuser/
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bosschaert David Bosschaert
                Reporter:
                herr-herner Jens Offenbach
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: