diff options
author | Jack Magne <jmagne@localhost.localdomain> | 2015-07-28 15:29:35 -0700 |
---|---|---|
committer | Jack Magne <jmagne@localhost.localdomain> | 2015-07-28 16:22:19 -0700 |
commit | e50a3d55017da97abb5296218422b4144c8ca990 (patch) | |
tree | b51e7e4960fdc2d460fda2c86491defc0b87fe18 /base | |
parent | becc7fdd56407941d47bfc6281b5c90bfdae5fa9 (diff) | |
download | pki-e50a3d55017da97abb5296218422b4144c8ca990.tar.gz pki-e50a3d55017da97abb5296218422b4144c8ca990.tar.xz pki-e50a3d55017da97abb5296218422b4144c8ca990.zip |
TPS UI: After successful key upgrade during pin reset operation the token db still shows old key
Simple matter of not updating the token record at the end of the pin reset operation.
Also, make sure the activity log is correct.
Diffstat (limited to 'base')
-rw-r--r-- | base/tps/src/org/dogtagpki/server/tps/processor/TPSPinResetProcessor.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/base/tps/src/org/dogtagpki/server/tps/processor/TPSPinResetProcessor.java b/base/tps/src/org/dogtagpki/server/tps/processor/TPSPinResetProcessor.java index 3494ca632..3a6c0df48 100644 --- a/base/tps/src/org/dogtagpki/server/tps/processor/TPSPinResetProcessor.java +++ b/base/tps/src/org/dogtagpki/server/tps/processor/TPSPinResetProcessor.java @@ -144,8 +144,23 @@ public class TPSPinResetProcessor extends TPSProcessor { checkAndHandlePinReset(channel); + try { + tps.tdb.tdbUpdateTokenEntry(tokenRecord); + CMS.debug(method + ": token record updated!"); + } catch (Exception e) { + String failMsg = "update token failure"; + auditMsg = failMsg + ":" + e.toString(); + tps.tdb.tdbActivity(ActivityDatabase.OP_PIN_RESET, tokenRecord, session.getIpAddress(), auditMsg, + "failure"); + throw new TPSException(auditMsg); + } + statusUpdate(100, "PROGRESS_PIN_RESET_COMPLETE"); + auditMsg = "pin reset operation completed successfully"; + tps.tdb.tdbActivity(ActivityDatabase.OP_PIN_RESET, tokenRecord, session.getIpAddress(), auditMsg, + "success"); + CMS.debug(method + ": Token Pin successfully reset!"); } |