Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-3496

java.lang.IndexOutOfBoundsException when selecting empty crypto token for internal key binding

    Details

    • Issue discovered during:
      Integration

      Description

      java.lang.IndexOutOfBoundsException is thrown if during creation of an internal key binding a crypto token with no private keys is selected.

      Reproduction steps:

      1. Create crypto token "TestToken". No keys should be created in the token.
      2. Open page "System Functions" -> "Internal Key Bindings".
      3. Select the "OCSPKeyBinding" tab.
      4. Click on the "Create new..." link.
      5. Select "TestToken" under "Crypto Token".

      Expected results:

      1. Token is selected, but drop-down for key pair aliases is kept empty or a warning/info/error message is shown that token cannot be used since it has no keys.

      Actual results:

      1. An exception is thrown.

      Additional details:

      Not quite sure what would be the desirable behaviour, to be honest. But it shouldn't throw an except the very least. Stack trace is attached to the issue.

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            branko Branko Majic (Inactive)
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: