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

Regression: Edit CA page does not show key aliases from Statedumps correctly

    Details

    • Issue discovered during:
      Training
    • Sprint:
      EJBCA Team Bob - 2019 w6

      Description

      The Edit CA page does not restore key aliases from CAs imported with Statedump (Uninitialized CAs), and shows key aliases in the list as "signKeynull", "testKeynull" etc.

      Steps to reproduce:
      1. Ensure you have a CryptoToken. Create one if not, and create 3 keys: defaultKey, signKey, testKey
      2. Create a CA called "StatedumpExportTest" using this Crypto Token.
      3. Build Statedump:

      ant statedump
      

      4. Export the CA (will create the directory eca-7758-statedump):

      dist/statedump/statedump.sh export -l eca-7758-statedump --exclude '*:*' --include='CA:StatedumpExportTest'
      

      5. Delete the StatedumpExportTest CA
      6. Import the CA again.
      7. Open the "Edit CA" page for StatedumpExportTest.

      Expected results:

      • Key aliases restored correctly (from top to bottom: defaultKey, signKey, defaultKey, defaultKey, testKey)
      • Key aliases have the correct names in the lists (testKey, signKey, defaultKey)

      Actual results:

      • Only the first key alias is restored.
      • Key aliases are listed as "defaultKeynull" etc.
        "Save and Initialize" still works correctly. This is just a rendering problem

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samuel Samuel Lidén Borell
              Reporter:
              samuel Samuel Lidén Borell
              Verified by:
              Jekaterina Bunina
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 20 minutes Original Estimate - 20 minutes
                  20m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h