summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java105
1 files changed, 0 insertions, 105 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
index 67f633468..316654720 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java
@@ -1998,111 +1998,6 @@ public class LogAdminServlet extends AdminServlet {
}
// initialize the log
- try {
- if (false) {
- newMgrInst.init(mSys, substore);
- }
- } catch (EBaseException e) {
- // check to see if the log file path parameter was changed
- newLogPath = auditCheckLogPath(req);
-
- // check to see if the log expiration time parameter was changed
- // newExpirationTime = auditCheckLogExpirationTime(req);
-
- // don't commit in this case and cleanup the new substore.
- restore(instancesConfig, id, saveParams);
-
- // store a message in the signed audit log file
- // (regardless of logType)
- if (!(newLogPath.equals(origLogPath))) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_LOG_PATH_CHANGE,
- auditSubjectID,
- ILogger.FAILURE,
- logType,
- newLogPath);
-
- audit(auditMessage);
- }
-
- // store a message in the signed audit log file
- // (regardless of logType)
- /* if (!(newExpirationTime.equals(origExpirationTime))) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
- auditSubjectID,
- ILogger.FAILURE,
- logType,
- newExpirationTime);
-
- audit(auditMessage);
- } */
-
- // store a message in the signed audit log file
- if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_CONFIG_SIGNED_AUDIT,
- auditSubjectID,
- ILogger.FAILURE,
- auditParams(req));
-
- audit(auditMessage);
- }
-
- sendResponse(ERROR, e.toString(getLocale(req)), null,
- resp);
- return;
- } catch (Throwable e) {
- // check to see if the log file path parameter was changed
- newLogPath = auditCheckLogPath(req);
-
- // check to see if the log expiration time parameter was changed
- // newExpirationTime = auditCheckLogExpirationTime(req);
-
- restore(instancesConfig, id, saveParams);
-
- // store a message in the signed audit log file
- // (regardless of logType)
- if (!(newLogPath.equals(origLogPath))) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_LOG_PATH_CHANGE,
- auditSubjectID,
- ILogger.FAILURE,
- logType,
- newLogPath);
-
- audit(auditMessage);
- }
-
- // store a message in the signed audit log file
- // (regardless of logType)
- /* if (!(newExpirationTime.equals(origExpirationTime))) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
- auditSubjectID,
- ILogger.FAILURE,
- logType,
- newExpirationTime);
-
- audit(auditMessage);
- } */
-
- // store a message in the signed audit log file
- if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
- auditMessage = CMS.getLogMessage(
- LOGGING_SIGNED_AUDIT_CONFIG_SIGNED_AUDIT,
- auditSubjectID,
- ILogger.FAILURE,
- auditParams(req));
-
- audit(auditMessage);
- }
-
- sendResponse(ERROR, e.toString(), null,
- resp);
- return;
- }
-
// initialized ok. commiting
try {
mConfig.commit(true);