You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2011/05/18 21:54:47 UTC

[jira] [Closed] (FELIX-2958) Unable to remove previously added repository from OBR

     [ https://issues.apache.org/jira/browse/FELIX-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor closed FELIX-2958.
------------------------------


Thank you!


> Unable to remove previously added repository from OBR
> -----------------------------------------------------
>
>                 Key: FELIX-2958
>                 URL: https://issues.apache.org/jira/browse/FELIX-2958
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.6.4
>            Reporter: Jarek Gawor
>            Assignee: Richard S. Hall
>             Fix For: bundlerepository-1.6.6
>
>         Attachments: FELIX-2958.patch
>
>
> When adding a new repository to OBR, the passed url is converted into an actual URL object and the repository is stored in a map under url.toExternalForm() key. However, when removing a repository, the raw url string is used remove the repository from the map. Because of the uri conversion to URL object in addRepository(), the passed in string and the string produced by URL.toExternalForm() might be slightly different. That can make removeRepository() not work right (the repository won't be removed).
> For example, URL.toExternalForm() on file:///media/d/m2/repository.xml returns file:/media/d/m2/repository.xml.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira