summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape
diff options
context:
space:
mode:
authorvakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-04-12 15:55:24 +0000
committervakwetu <vakwetu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-04-12 15:55:24 +0000
commitecdcabc5edbfddedf91cc0f5db437a4dd808bedd (patch)
tree35cc786e4cfce30ed17bd4ebf9e1d43bae154bbf /pki/base/common/src/com/netscape
parent5447794311572726cf50805d89474398a28fb3c8 (diff)
downloadpki-ecdcabc5edbfddedf91cc0f5db437a4dd808bedd.tar.gz
pki-ecdcabc5edbfddedf91cc0f5db437a4dd808bedd.tar.xz
pki-ecdcabc5edbfddedf91cc0f5db437a4dd808bedd.zip
Bugzilla BZ695403: Editing signedaudit or transaction, system logs throws 'Invalid protocol' for OCSP subsystems
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1956 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/admin/LogAdminServlet.java54
1 files changed, 28 insertions, 26 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 f8350da9d..23656942c 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
@@ -310,6 +310,7 @@ public class LogAdminServlet extends AdminServlet {
sendResponse(ERROR, e.toString(getLocale(req)), null, resp);
} catch (Exception e) {
System.out.println("XXX >>>" + e.toString() + "<<<");
+ e.printStackTrace();
sendResponse(ERROR,
CMS.getUserMessage(getLocale(req), "CMS_ADMIN_SRVLT_INVALID_PROTOCOL"),
null, resp);
@@ -1835,7 +1836,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
// cleanup
restore(instancesConfig, id, saveParams);
@@ -1855,6 +1856,7 @@ public class LogAdminServlet extends AdminServlet {
// 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,
@@ -1864,7 +1866,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ }*/
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -1886,7 +1888,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ //newExpirationTime = auditCheckLogExpirationTime(req);
restore(instancesConfig, id, saveParams);
@@ -1905,7 +1907,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /*if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -1914,7 +1916,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ }*/
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -1936,7 +1938,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ //newExpirationTime = auditCheckLogExpirationTime(req);
restore(instancesConfig, id, saveParams);
@@ -1955,7 +1957,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /* if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -1964,7 +1966,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ } */
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -1993,7 +1995,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
// don't commit in this case and cleanup the new substore.
restore(instancesConfig, id, saveParams);
@@ -2013,7 +2015,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /* if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2022,7 +2024,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ } */
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -2043,7 +2045,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
restore(instancesConfig, id, saveParams);
@@ -2062,7 +2064,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /* if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2071,7 +2073,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ } */
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -2097,7 +2099,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
// clean up.
restore(instancesConfig, id, saveParams);
@@ -2118,7 +2120,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /* if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2127,7 +2129,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ }*/
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -2160,7 +2162,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ //newExpirationTime = auditCheckLogExpirationTime(req);
// store a message in the signed audit log file
// (regardless of logType)
@@ -2177,7 +2179,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /*if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2186,7 +2188,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ }*/
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -2206,7 +2208,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
// store a message in the signed audit log file
// (regardless of logType)
@@ -2223,7 +2225,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /* if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2232,7 +2234,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ } */
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {
@@ -2252,7 +2254,7 @@ public class LogAdminServlet extends AdminServlet {
newLogPath = auditCheckLogPath(req);
// check to see if the log expiration time parameter was changed
- newExpirationTime = auditCheckLogExpirationTime(req);
+ // newExpirationTime = auditCheckLogExpirationTime(req);
// store a message in the signed audit log file
// (regardless of logType)
@@ -2269,7 +2271,7 @@ public class LogAdminServlet extends AdminServlet {
// store a message in the signed audit log file
// (regardless of logType)
- if (!(newExpirationTime.equals(origExpirationTime))) {
+ /*if (!(newExpirationTime.equals(origExpirationTime))) {
auditMessage = CMS.getLogMessage(
LOGGING_SIGNED_AUDIT_LOG_EXPIRATION_CHANGE,
auditSubjectID,
@@ -2278,7 +2280,7 @@ public class LogAdminServlet extends AdminServlet {
newExpirationTime);
audit(auditMessage);
- }
+ }*/
// store a message in the signed audit log file
if (logType.equals(SIGNED_AUDIT_LOG_TYPE)) {