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

Cannot import service configuration via ssoadm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 13.0.0
    • Fix Version/s: 13.5.0
    • Component/s: CLI
    • Sprint:
      AM Sustaining Sprint 19, AM Sustaining Sprint 20, AM Sustaining Sprint 21, AM Sustaining Sprint 22
    • Support Ticket IDs:

      Description

      Replication steps:

      1) Export configuration using ssoadm:
      ./ssoadm export-svc-cfg -u amadmin -f /tmp/cangetinam -e secret -o am13config.xml

      Service Configuration was exported.

      2) Import configuration using ssoadm:

      ./ssoadm import-svc-cfg -u amadmin -f /tmp/cangetinam -e secret -X am13config.xml

      Exception in thread "main" java.lang.NullPointerException
      at java.io.Reader.<init>(Reader.java:78)
      at java.io.InputStreamReader.<init>(InputStreamReader.java:72)
      at org.forgerock.opendj.ldif.AbstractLDIFReader.<init>(AbstractLDIFReader.java:185)
      at org.forgerock.opendj.ldif.LDIFChangeRecordReader.<init>(LDIFChangeRecordReader.java:161)
      at com.sun.identity.cli.schema.ImportServiceConfiguration.loadLDIF(ImportServiceConfiguration.java:329)
      at com.sun.identity.cli.schema.ImportServiceConfiguration.handleRequest(ImportServiceConfiguration.java:128)
      at com.sun.identity.cli.SubCommand.execute(SubCommand.java:296)
      at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:217)
      at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:139)
      at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:576)
      at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:173)
      at com.sun.identity.cli.CommandManager.main(CommandManager.java:150)

      Expected result:

      When importing with ssoadm, prompt to delete existing data [y|N], if 'y', import configuration or otherwise provide user with appropriate error message.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sfraser Sam Fraser
                Reporter:
                john.noble John Noble
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5h Original Estimate - 5h
                  5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 15h
                  15h