Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-4228

status command with keystore options throws ArrayIndexOutOfBoundsException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0, 3.5.2, 3.5.0, 3.0.0, 2.6.0
    • Fix Version/s: 5.5.0
    • Component/s: tools
    • Labels:
    • Support Ticket IDs:
    • Sprint:
      OpenDJ Sprint 110

      Description

      "status" with keystore options fails in DS 5.0.0 and OpenDJ 3.5.x.

      On DS 5.0.0:

      # ./status -D "cn=directory manager" -w password --certNickname server-cert \
          --keystorepath   /home/OpenDJ/DS5.0.0/config/keystore --keystorepasswordfile   /home/OpenDJ/DS5.0.0/config/keystore.pin \
          --truststorepath /home/OpenDJ/DS5.0.0/config/keystore --truststorepasswordfile /home/OpenDJ/DS5.0.0/config/keystore.pin
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
        at org.opends.admin.ads.util.ApplicationKeyManager.<init>(ApplicationKeyManager.java:118)
        at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.getKeyManagerInternal(LDAPConnectionConsoleInteraction.java:967)
        at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.initializeTrustAndKeyManagers(LDAPConnectionConsoleInteraction.java:1870)
        at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.resolveTrustAndKeyManagers(LDAPConnectionConsoleInteraction.java:437)
        at org.opends.server.util.cli.LDAPConnectionConsoleInteraction.run(LDAPConnectionConsoleInteraction.java:397)
        at org.opends.server.tools.status.StatusCli.execute(StatusCli.java:261)
        at org.opends.server.tools.status.StatusCli.mainCLI(StatusCli.java:177)
        at org.opends.server.tools.status.StatusCli.main(StatusCli.java:140)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                JnRouvignac Jean-Noël Rouvignac
                Reporter:
                wei-yee.lum Wei-Yee Lum
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: