Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2559

Extra XWiki extensions repository properties are lost if the URL ends with /

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 13.10.11, 14.4.7, 14.10
    • 4.3-milestone-1
    • Extension
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The auth config properties are lost, probably at https://github.com/xwiki/xwiki-commons/blob/fd0879010711fc4ee364b1400e3994afe6b552be/xwiki-commons-core/xwiki-commons-extension/xwiki-commons-extension-repositories/xwiki-commons-extension-repository-xwiki/src/main/java/org/xwiki/extension/repository/xwiki/internal/XWikiExtensionRepository.java#L128

      To reproduce:

      extension.repositories = maven-xwiki:maven:https://nexus.xwiki.org/nexus/content/groups/public
      extension.repositories = store.xwiki.com:xwiki:https://store.xwiki.com/xwiki/rest/
      extension.repositories = extensions.xwiki.org:xwiki:https://extensions.xwiki.org/xwiki/rest/
      extension.repositories = localxr:xwiki:http://localhost:8080/xwiki/rest/
      extension.repositories.localxr.auth.user = Admin
      extension.repositories.localxr.auth.password = admin 
      

      The workaround is to remove the / at the end of http://localhost:8080/xwiki/rest/

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: