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

Statedump dependency problem when when importing a CA

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: EJBCA 6.8.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Integration

      Description

      Statedump fails to import CAs in certain cases. This seems to happen because the certicate profiles are not imported yet, and then the CA references them.

      The solution might be to change the order the CAs and Certificate Profiles are imported [Update - this should work, but see below]. This has worked for at least one statedump, but it needs to be investigated further. It happens on EJBCA 6.8.0 and 6.9.0-trunk, but might have been introduced earlier.

      For the statedump file that does not import, ask Samuel or Chris. It comes from a customer project, so it can't be attached here. Part of this issue is to create a minimal statedump to reproduce the problem.

      If it's not trivial to fix, this can wait until a later version (there seems to be a workaround). Will investigate later.
      [Update - On the certificate profile import, there's a check if the referenced CAs exists. So this would require building a list of all CAs to import first, and then checking against that list in addition to the caSession.existsCa() call]

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            samuel Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified