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

Crypto Tokens are re-created and activated every time cache is reloaded

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.11.1
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Sprint 8

      Description

      I was always annoyed that clicking on CryptoTokens in Admin GUI took many seconds to load almost all the time. Digging into it finally I discovered that when we check if the Crypto Token cache needs reloading, we actually create and initialize the tokens and activate them (if autoactivation), just to then throw it away if the object is the same as already was in the cache.

      A very good, and trivial optimization is to before initializing the crypto token, check is the cache will actually be updated, something that is nicely controlled by the lastUpdate field in the database.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tomas Tomas Gustavsson
                Reporter:
                tomas Tomas Gustavsson
                Verified by:
                Mike Agrenius Kushner
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: