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

NullPointerException is encountered if amupgrade is run with a rule that includes "createSecretStores()" and a secretsConfigFile file is not specified

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: amupgrader
    • Labels:
    • Sprint:
      AM 2019.13 - Catapult

      Description

      Bug description

      NullPointerException is encountered if amupgrade is run with a rule that includes "createSecretStores()" and a secretsConfigFile file is not specified (see OPENAM-15412 and OPENAM-15413)

      How to reproduce the issue

      $ ./amupgrade -i /x/6.0.0 -o /x/6.0.0.up -a 6.5.1 rules/6.x.x-to-6.5.x.groovy
      

      is rectified by:

      $ ./amupgrade -i /x/6.0.0 -o /x/6.0.0.up -a 6.5.1 rules/6.x.x-to-6.5.x.groovy -f sampleconfig.properties 
      
      Expected behaviour

      It should be clear that a secretsConfigFile is required if the createSecretStores() rule is included when using the amupgrader.

      Current behaviour
      • It is not clear from the README delivered with the amupgrader that a secretsConfigFile is required if the createSecretStores() rule is included.
      • It is not clear from the amupgrader CLI help that a secretsConfigFile is required if the createSecretStores() rule is included. e.g.
        • --secretsConfigFile, -f
                The properties file that contains settings necessary to migrate 
                credentials to secrets, see sampleconfig.properties file for more 
                details 
        • there is no asterisk to denote that this is required.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ken.stubbings Ken Stubbings
                Reporter:
                AndrewVinall Andrew Vinall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: