Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10349

Error about missing requirement is observed after update from 5.0.0.2 to 5.5.0

    Details

      Description

      Steps to reproduce:

      1. install OpenIDM 5.0.0.2 (update from 5.0.0) with a JDBC repo (MySQL for example)
        1. cp IDM-5.0.0.2-RC3-patch.zip openidm/bin/update/
        2. ./openidm/cli.sh update  --skipRepoUpdatePreview --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm IDM-5.0.0.2-RC3-patch.zip
      2. cp IDM-5.5.0.zip openidm/bin/update
      3. cp IDM-5.5.0-pre_update.zip openidm/bin/update
      4. ./cli.sh update -acceptLicense --user openidm-admin:openidm-admin --url http://localhost:8080/openidm -skipRepoUpdatePreview IDM-5.5.0-pre_update.zip
      5. shutdown/start OpenIDM
      6. ./cli.sh update --acceptLicense --user openidm-admin:openidm-admin --url http://localhost:8080/openidm IDM-5.5.0.zip
        1. save SQL files and execute them
        2. mysql -u root -p -D openidm < v6_add_primary_key_to_properties_tables.sql
        3. mysql -u root -p -D openidm < v7_add_primary_key_to_properties_tables.sql
        4. mysql -u root -p -D openidm < v7_create_clusteredrecon_targetids_table.sql
        5. mysql -u root -p -D openidm < v8_add_uinotification_index.sql
        6. mysql -u root -p -D openidm < v9_add_provider_method_context_fields.sql
        7. mysql -u root -p -D openidm < v10_increase_uinotification_id_sizes.sql
      7. ./cli.sh update --skipRepoUpdatePreview --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm IDM-5.5.0.zip
      8. shutdown OpenIDM
      9. remove conf/repo.opendj.json
      10. start OpenIDM

      Expected result: IDM starts correctly without any error.

      Actual result: IDM starts with erroe. Please look at error message below.

      Executing ./startup.sh...
      Using OPENIDM_HOME: /home/kuba/Documents/idm5002/updateTesting/5002/openidm
      Using PROJECT_HOME: /home/kuba/Documents/idm5002/updateTesting/5002/openidm
      Using OPENIDM_OPTS: -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/home/kuba/Documents/idm5002/updateTesting/5002/openidm/conf/logging.properties
      -> Mar 01, 2018 8:21:47 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.commons.forgerock-jaspi-openid-connect-module [114] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.BundleException: Unable to resolve org.forgerock.commons.forgerock-jaspi-openid-connect-module [114](R 114.0): missing requirement [org.forgerock.commons.forgerock-jaspi-openid-connect-module [114](R 114.0)] osgi.wiring.package; (&(osgi.wiring.package=org.forgerock.caf.authentication.api)(version>=21.7.0)(!(version>=22.0.0))) Unresolved requirements: [[org.forgerock.commons.forgerock-jaspi-openid-connect-module [114](R 114.0)] osgi.wiring.package; (&(osgi.wiring.package=org.forgerock.caf.authentication.api)(version>=21.7.0)(!(version>=22.0.0)))]
      at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:2117)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
      at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      at java.lang.Thread.run(Thread.java:748)
      
      OpenIDM version "5.5.0" (revision: 107cb90) jenkins-OpenIDM - 5.5 - Release-18 origin/5.5
      

      When I try to do update from 5.0.0 to 5.5.0 I don't see this error and even more I don't find jaspi authentication module. 

      When I try to find jaspi modules in felix console I see for IDM 5.5.0 which is upgraded from 5.0.0 this ( there is NOT : ForgeRock JASPI (JSR-196) OpenID Connect Authentication Module (21.7.0) )

      OpenIDM version "5.5.0" (revision: 107cb90) jenkins-OpenIDM - 5.5 - Release-18 origin/5.5
      
      -> find jaspi
      START LEVEL 12
      ID State Level Name
      [ 50] [Active ] [ 10] ForgeRock JASPI (JSR-196) Runtime (22.0.0)
      [ 79] [Active ] [ 10] ForgeRock JASPI (JSR-196) IWA Module (22.0.0)
      [ 161] [Active ] [ 10] ForgeRock JASPI (JSR-196) JWT Session Module (22.0.0)
      [ 180] [Active ] [ 10] ForgeRock JASPI (JSR-196) OpenAM Session Module (22.0.0)
      

      When I try to find jaspi modules in felix console I see for IDM 5.5.0 which is upgraded from 5.0.0.2 this:

      -> find jaspi
      START LEVEL 12
      ID State Level Name
      [ 50] [Active ] [ 10] ForgeRock JASPI (JSR-196) Runtime (22.0.0)
      [ 79] [Active ] [ 10] ForgeRock JASPI (JSR-196) IWA Module (22.0.0)
      [ 114] [Installed ] [ 10] ForgeRock JASPI (JSR-196) OpenID Connect Authentication Module (21.7.0)
      [ 162] [Active ] [ 10] ForgeRock JASPI (JSR-196) JWT Session Module (22.0.0)
      [ 181] [Active ] [ 10] ForgeRock JASPI (JSR-196) OpenAM Session Module (22.0.0)
      

      Used binaries:

      • IDM-5.0.0.2-RC3-patch.zip (revision: 7be154a)
      • from backstage:
        • IDM-5.0.0.zip
        • IDM-5.5.0.zip
        • IDM-5.5.0-pre_update.zip

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Lana Lana Frost
                Reporter:
                jakub.janoska Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: