Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9480

"Upgrade all wikis" option does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2-milestone-2
    • Fix Version/s: 5.2-rc-1
    • Component/s: Extension
    • Labels:
      None
    • Difficulty:
      Hard
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I am testing the migration from XEM 4.5.4 to XE 5.2 (local build).

      1. Install a new XEM 4.5.4.
      2. Create a workspace with WorkspaceManager (called 'workspace1')
      3. Create a new subwiki with WikiManager (called 'subwiki1') - I create it from a XAR template which is xwiki-enterprise-ui-all.
      4. Replace the webapp with a 5.2.
      5. Put your own maven directory as the extension repository. In xwiki.properties:
        extension.repositories=local:maven:file://${sys:user.home}/.m2/repository
      6. Upgrade the main wiki

      It works:

      • For example Main.SpaceIndex is in version 2.1.
      • In the "installed extensions" menu, I can see all extensions correctly upgraded.

      Then, in the DW, choose "Upgrade all wikis. Choose this option if all wikis are administrated by the same entity.".
      It displays "All extensions are up to date. "

      But:

      • 'workspace1' is not upgraded:
        • for example Panels.WorkspaceInformationPanel is still in version 1.1
        • In the "installed extensions" menu, I see 'XWiki Enterprise - UI All'. It has not been upgraded because there is no new version for it. It has been replaced by xwiki-enterprise-ui-wiki-all.
      • 'subwiki1' is not upgraded:
        • for example Main.SpaceIndex is still in version 1.1
        • In the "installed extensions" menu, I see 'XWiki Enterprise - UI All ' with the message 'Installed but not valid'. It has not been upgraded because there is no new version for it. It has been replaced by xwiki-enterprise-ui-common.

      As Marius and Thomas explained me:

      When you have an extension installed with version X, and then a new version Y is released but with the id changed, extension manager is not able to detect it. Ideally the EM should detect this and propose the user to upgrade from version X to Y even if the extension id has changed between version X and Y.

      Discussion: http://markmail.org/message/23iugpzepbfc5bfu

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mflorea Marius Dumitru Florea
                Reporter:
                gdelhumeau Guillaume Delhumeau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: