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

Replacing the keystore.jceks file from a previous deployment without the storepass file will result in a version parsing error - which could be more descriptive

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 13.5.1, 14.1.1, 5.5.1, 6.0.0
    • Fix Version/s: None
    • Component/s: CTS
    • Labels:
    • Support Ticket IDs:

      Description

      Bug description

      As a result of changes made in OPENAM-11547 - the upgrade of AM may fail due to being unable to parse the versions to determine whether an upgrade is needed. At the moment, the general error output will simply state "Unable to parse product versions for comparison" if unable to parse these versions.

      One cause of the version not being read has been found to be due to the keystore not being able to be read - e.g. due to a missing storepass file. in this case this information should be reported in the error message to give a clearer indication to the user of what the cause of the problem is.

      How to reproduce the issue

      Taken from comment within OPENAM-11547 - I reproduced it by only replacing my keystore.jceks file from a previous deployment (to preserve the amster transport key), but forgot to also move across the storepass file. In the end, the container logs were quite clear in my case as to what the issue was:

      2018-03-12 07:53:39,826 INFO  [stdout] (ServerService Thread Pool -- 85) java.io.IOException: Can't open boot keystore
      2018-03-12 07:53:39,826 INFO  [stdout] (ServerService Thread Pool -- 85)        at com.sun.identity.setup.BootstrapData.readBootJson(BootstrapData.java:165)
      2018-03-12 07:53:39,826 INFO  [stdout] (ServerService Thread Pool -- 85)        at com.sun.identity.setup.BootstrapData.<init>(BootstrapData.java:132)
      2018-03-12 07:53:39,826 INFO  [stdout] (ServerService Thread Pool -- 85)        at com.sun.identity.setup.AMSetupServlet.checkConfig
      Expected behaviour
      The output error message should indicate that it was unable to open the keystore to obtain the current version - most likely due to a missing storepass file
      
      Current behaviour
      The output error message simply indicates that "Unable to parse product versions for comparison"
      

      Work around

      View the container logs to confirm the issue and replace the missing storepass file.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                adam.heath Adam Heath
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: