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
- is related to
-
XWIKI-16800 Distribution wizard displays incorrect information when upgrading a flavor depending of another flavor
- Open