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:30:47 UTC

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

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


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

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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ 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

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

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ 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

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

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor updated FELIX-2958:
-------------------------------

    Attachment: FELIX-2958.patch

Attached patch for this issue.


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