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

Bad report when the flavor cannot be found in case of upgrade

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 10.11.10
    • None
    • Unknown

    Description

      When the flavor cannot be found during an upgrade, we got a wrong UI and the following console errors:

      2019-11-22 09:59:56,757 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] ERROR o.x.v.i.DefaultVelocityEngine - Left side ($extension.authors.size()) of '>' operation has null value at 24:/templates/distribution.vm[line 965, column 39]
      2019-11-22 09:59:56,763 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] ERROR o.x.v.i.DefaultVelocityEngine - Left side ($extension.dependencies.size()) of '>' operation has null value at 24:/templates/distribution.vm[line 307, column 38]
      2019-11-22 09:59:56,768 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] ERROR o.x.v.i.DefaultVelocityEngine - Left side ($extension.extensionFeatures.size()) of '>' operation has null value at 24:/templates/distribution.vm[line 327, column 47]
      2019-11-22 09:59:56,773 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] ERROR o.x.v.i.DefaultVelocityEngine - Left side ($extension.licenses.size()) of '>' operation has null value at 24:/templates/distribution.vm[line 346, column 38]
      2019-11-22 09:59:56,775 [http://localhost:8080/xwiki/bin/distribution/XWiki/Distribution?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2F] ERROR o.x.v.i.DefaultVelocityEngine - Left side ($extension.dependencies.size()) of '>' operation has null value at 24:/templates/distribution.vm[line 568, column 40]
      

      Reproduction step:

      • Build xwiki-platform-distribution-flavor-jetty-hsqldb from a snapshot version *without* the profile snapshot
      • Unzip the produced artifact and replace the /data/ directory with the /data/ from another version (trying with 10.11.1 in my case)
      • Start xwiki, login with Admin and start the upgrade

      Expected result:

      • At second step the Upgrade should say it cannot find the flavor

      Obtained result:

      • The UI shows some velocity (cf screenshot) and the console shows the error pasted above

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: