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

Error when installing non local extension on several namespaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.1
    • Component/s: Extension
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      From Marius Dumitru Florea:

      If I add the target namespaces to the install request then the plan looks like this:

      The following extensions will be upgraded:
        Contrib JIRA Macro 1.2 (in wiki math) Version 1.1 is installed
        Contrib JIRA Macro 1.2 (in wiki xwiki) Version 1.1 is installed
      

      which is fine, but then when I execute the plan, if the version to install is not cached locally, I get:

      Starting job of type [install] with identifier [extension/action/org.xwiki.contrib:macro-jira]
      Starting job of type [installplan]
      Resolving extension [Contrib JIRA Macro 1.2] on namespace [wiki:math]
      Found already installed extension with id [Contrib JIRA Macro 1.2]. Checking compatibility.
      Resolving extension [Contrib JIRA Macro 1.2] on namespace [wiki:xwiki]
      Found already installed extension with id [Contrib JIRA Macro 1.2]. Checking compatibility.
      Finished job of type [installplan]
      Downloading [Contrib JIRA Macro 1.2]
      Downloading [Contrib JIRA Macro 1.2]
      Extension [org.xwiki.contrib:macro-jira-1.2] already exists in local repository
          class org.xwiki.extension.repository.LocalExtensionRepositoryException: Extension [org.xwiki.contrib:macro-jira-1.2] already exists in local repository
          at org.xwiki.extension.repository.internal.local.DefaultLocalExtensionRepository.storeExtension(DefaultLocalExtensionRepository.java:176) 
          at org.xwiki.extension.job.internal.InstallJob.storeExtension(InstallJob.java:173)
          at org.xwiki.extension.job.internal.InstallJob.store(InstallJob.java:161)
          at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:132)
          at org.xwiki.job.AbstractJob.start(AbstractJob.java:134)
          at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:155)
          at java.lang.Thread.run(Thread.java:722)
      Finished job of type [install] with identifier [extension/action/org.xwiki.contrib:macro-jira]
      

      If I try again it works, because this time the version to install is cached. Can you fix this for 4.5.1 and 5.0M1? Thanks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: