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

Amster import broken since amster build 7.0.0-4b569b9612

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 6.5.2, 7.0.0
    • Component/s: Amster
    • Labels:
    • Target Version/s:
    • Sprint:
      AM 2019.6 - Lathe

      Description

      Since Amster build 7.0.0-4b569b9612, any Amster import results in the following error:

      ERROR java.lang.IllegalArgumentException:
      Comparison method violates its general contract!

      importPath: /git/config/6.5/default/am/empty-import (forgeops-init)

      Any config import results in the same error.

      To simply demonstrate:

       

      bash-4.4$ ./amster
      Amster OpenAM Shell (7.0.0-SNAPSHOT build 7e66023f4e, JVM: 1.8.0_201)
      Type ':help' or ':h' for help.
      -------------------------------------------------------------------------------
      am> 
      am> connect -k  /var/run/secrets/amster/id_rsa http://openam/am
      amster openam> 
      amster openam> export-config --path /opt/amster/am
      Export completed successfully
      amster openam> 
      amster openam> 
      amster openam> import-config --path /opt/amster/am
      Importing directory /opt/amster/am
      ERROR java.lang.IllegalArgumentException:
      Comparison method violates its general contract!
              at org.forgerock.openam.amster.loadster.importer.Importer.importGlobalEntities (Importer.groovy:132)
              at org.forgerock.openam.amster.loadster.importer.Importer.importDirectory (Importer.groovy:115)
              at org.forgerock.openam.amster.loadster.importer.Importer.importEntities (Importer.groovy:106)
              at org.forgerock.openam.amster.commands.ImportCommand.execute (ImportCommand.groovy:55)
              at org.forgerock.openam.amster.Main$_addCommandLineWrapping_closure2.doCall (Main.groovy:92)
              at java_lang_Runnable$run.call (Unknown Source)
              at org.forgerock.openam.amster.Main.main (Main.groovy:62)
      amster openam>
      

       

       

      This worked as expected up to build 7.0.0-e8f19fd1a1.

       

      This is blocking, testing, cloud development and FRaaS team.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peter.major Peter Major [X] (Inactive)
                Reporter:
                lee.baines Lee Baines
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 16h
                  16h