[
https://issues.apache.org/jira/browse/FELIX-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard S. Hall resolved FELIX-2958.
------------------------------------
Resolution: Fixed
Fix Version/s: bundlerepository-1.6.6
Assignee: Richard S. Hall
Applied the patch. Please close if you are satisfied. Thanks!
> 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