wso2 / product-is

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
742 stars 720 forks source link

IS 5.3 (1581437806724) doesn't start with Java 1.7 due to FIDO incompatibility #7668

Closed nipunthathsara closed 4 years ago

nipunthathsara commented 4 years ago

Description: IS 5.3.0 latest WUM 1581437806724 is not compatible with Java 1.7 Fresh pack doesn;t have an issue with 1.7 1.7 is supported as per the documentation as well.

Possible reason : This seems to be a side effect of adding jackson datatype library and yubico library in the dropins directory. As these libraries requires java 1.8, activation of these bundles fails. Thereafter, the FIDO authenticator activation fails as it relies on the aforementioned bundles. please refer to the OSGI debug logs below.

osgi> ss fido
  "Framework is launched."

  id   State       Bundle
  276  INSTALLED   org.wso2.carbon.identity.application.authenticator.fido_5.1.24
  277  INSTALLED   org.wso2.carbon.identity.application.authenticator.fido2_5.1.24
  osgi>
  osgi>
  osgi>
  osgi>
  osgi>
  osgi>
  osgi>
  osgi>
  osgi> diag 276
  reference:file:../dropins/org.wso2.carbon.identity.application.authenticator.fido-5.1.24.jar [276]
Direct constraints which are unresolved:
  Missing imported package org.wso2.carbon.identity.application.authenticator.fido2.core_5.1.24.
Leaf constraints in the dependency chain which are unresolved:
  reference:file:../dropins/yubico-webauthn-1.3.0.wso2v2.jar [547]
  Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
  reference:file:../dropins/com.fasterxml.jackson.datatype.jackson-datatype-jdk8_2.9.9.jar [32]
  Missing required capability Require-Capability: osgi.ee; filter="(&(osgi.ee=JavaSE)(version=1.8))".
  osgi>
  osgi>
  osgi>
  osgi> ss jackson
  "Framework is launched."

  id   State       Bundle
  28   ACTIVE      com.fasterxml.jackson.core.jackson-annotations_2.9.9
  29   ACTIVE      com.fasterxml.jackson.core.jackson-core_2.9.9
  30   ACTIVE      com.fasterxml.jackson.core.jackson-databind_2.9.9.3
  31   ACTIVE      com.fasterxml.jackson.dataformat.jackson-dataformat-cbor_2.9.9
  32   INSTALLED   com.fasterxml.jackson.datatype.jackson-datatype-jdk8_2.9.9

Affected Product Version: 5.3.0

Steps to reproduce: Take the latest 5.3 pack and try starting with Java 1.7

ruwanta commented 4 years ago

The identity server from 5.7.0 requires java 1.8. This issue is already fixed.