summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java b/pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java
index b84732a94..d9ee171d9 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/csadmin/RestoreKeyCertPanel.java
@@ -180,6 +180,7 @@ public class RestoreKeyCertPanel extends WizardPanelBase {
s = HttpInput.getPassword(request, "__password");
if (s == null || s.equals("")) {
CMS.debug("RestoreKeyCertPanel validate: password is empty");
+ context.put("updateStatus", "validate-failure");
throw new IOException("Empty password");
}
}
@@ -202,6 +203,7 @@ public class RestoreKeyCertPanel extends WizardPanelBase {
} catch (EBaseException e) {
}
getConfigEntriesFromMaster(request, response, context);
+ context.put("updateStatus", "success");
return;
}
String pwd = HttpInput.getPassword(request, "__password");
@@ -299,6 +301,7 @@ public class RestoreKeyCertPanel extends WizardPanelBase {
importkeycert(pkeyinfo_collection, cert_collection);
} else {
+ context.put("updateStatus", "failure");
throw new IOException("The pkcs12 file is not correct.");
}
}
@@ -318,6 +321,7 @@ public class RestoreKeyCertPanel extends WizardPanelBase {
if (!cloneReady) {
CMS.debug("RestoreKeyCertPanel update: clone does not have all the certificates.");
context.put("errorString", "Make sure you have copied the certificate database over to the clone");
+ context.put("updateStatus", "failure");
throw new IOException("Clone is not ready");
}
}
@@ -329,6 +333,7 @@ public class RestoreKeyCertPanel extends WizardPanelBase {
}
getConfigEntriesFromMaster(request, response, context);
+ context.put("updateStatus", "success");
}
private void getConfigEntriesFromMaster(HttpServletRequest request,