Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-12610

AM cannot recognize version on upgrade from older versions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0, 5.5.2
    • Component/s: upgrade
    • Labels:
    • Environment:
      6.0.0-SNAPSHOT Build c15fc7d310 (2018-March-14 15:32) @ Tomcat 8.0.46 @ Ubuntu16.04/CentOS7
    • Target Version/s:
    • Needs backport:
      Yes
    • Needs QA verification:
      No
    • Functional tests:
      Yes
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      Upgrade from OpenAM version 12.0.4 and 13.5.1 is failing with

      ERROR: Unable to parse product versions for comparison; Current: null war: ForgeRock Access Management 6.0.0-SNAPSHOT Build c15fc7d310 (2018-March-14 15:32)
      org.forgerock.openam.upgrade.UpgradeException: Unable to parse product versions for comparison. Current: null war: ForgeRock Access Management 6.0.0-SNAPSHOT Build c15fc7d310 (2018-March-14 15:32)
      	at org.forgerock.openam.upgrade.VersionUtils.isVersionNewer(VersionUtils.java:100)
      	at org.forgerock.openam.upgrade.VersionUtils.isVersionNewer(VersionUtils.java:87)
      	at com.sun.identity.setup.AMSetupManager.isVersionNewer(AMSetupManager.java:72)
      	at com.sun.identity.setup.AMSetupFilter.isConfigStoreDown(AMSetupFilter.java:162)
      	at com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:115)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.forgerock.openam.audit.context.AuditContextFilter.doFilter(AuditContextFilter.java:46)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      

      The error is thrown right after starting Tomcat with new WAR file and sending request on /openam.

      Complete catalina.out attached.
       

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)
      running PyForge test

      • set previous_version in OpenAM section of config.cfg to 12.0.4
      • run ./run-pybot.py -c perf -s upgrade.upgrade OpenAM

      Last time it worked

      was with 6.0.0-SNAPSHOT Build bd612c617b (2018-March-09 10:31).

        Attachments

          Activity

            People

            • Assignee:
              peter.major Peter Major [X] (Inactive)
              Reporter:
              tomas.hejret Tomas Hejret
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: