-
Type: Bug
-
Status: In Progress
-
Priority: Critical
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 2021.x
-
Component/s: Nuxeo Package Management
-
Tags:
On an LTS-2021.40-SNAPTHOT trying to install both platform-importer and web-ui in relax mode results in web-ui 3.1.2 being installed while this package is for LTS 2023 only. Expected is to install web-ui 3.0.24
$ nuxeoctl mp-install --relax=true nuxeo-web-ui nuxeo-platform-importer Nuxeo home: /opt/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /opt/nuxeo/server/templates/common-base Include template: /opt/nuxeo/server/templates/common Include template: /opt/nuxeo/server/templates/default Relax restriction to target platform lts-2021.40-SNAPSHOT because of package(s) nuxeo-platform-importer Dependency resolution: Installation order (2): nuxeo-platform-importer-2021.39.6/nuxeo-web-ui-3.1.2 Packages to download (2): nuxeo-web-ui:3.1.2, nuxeo-platform-importer:2021.39.6 Do you want to continue (yes/no)? [yes]
This was working correctly the week before because when using LTS 2021.39 because platform-importer was aligned and available.
It looks like that now the latest platform-importer available is built on 2023 instead of 2021,
because the relax is removing the targetPlatform it causes the bug.
The same command without the relax option is working:
$ nuxeoctl mp-install nuxeo-web-ui nuxeo-platform-importer Nuxeo home: /opt/nuxeo/server Nuxeo configuration: /etc/nuxeo/nuxeo.conf Include template: /opt/nuxeo/server/templates/common-base Include template: /opt/nuxeo/server/templates/common Include template: /opt/nuxeo/server/templates/default Package(s) nuxeo-platform-importer not available on platform version lts-2021.40-SNAPSHOT. Do you want to relax the constraint (yes/no)? [no] yes Relax restriction to target platform lts-2021.40-SNAPSHOT because of package(s) nuxeo-platform-importer Dependency resolution: Installation order (2): nuxeo-platform-importer-2021.39.6/nuxeo-web-ui-3.0.24 Packages to download (2): nuxeo-web-ui:3.0.24, nuxeo-platform-importer:2021.39.6 Do you want to continue (yes/no)? [yes] ^C
Note that Installing only web-ui with relax mode is working as expected (3.0.24 is selected).
Using nuxeo-web-ui 3.1.2 instead of 3.0.x with Nuxeo LTS 2021 results in a failure to start:
2023-07-03T09:11:07,064 ERROR [main] [org.nuxeo.runtime.deployment.NuxeoStarter] Exception during startup java.lang.UnsupportedClassVersionError: org/nuxeo/web/ui/url/codec/WebNotificationDocumentIdCodec has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes c lass file versions up to 55.0