summaryrefslogtreecommitdiffstats
path: root/pki
diff options
context:
space:
mode:
authorjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-06-30 23:52:38 +0000
committerjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-06-30 23:52:38 +0000
commitbd70b5cacb5e95ba301a513a37cb8f8942282ea6 (patch)
treedec3cabeae0099e76c77976422121749538832af /pki
parent1685275fabdc90acf449feb9414ecb1021100448 (diff)
downloadpki-bd70b5cacb5e95ba301a513a37cb8f8942282ea6.tar.gz
pki-bd70b5cacb5e95ba301a513a37cb8f8942282ea6.tar.xz
pki-bd70b5cacb5e95ba301a513a37cb8f8942282ea6.zip
Bugzilla Bug# 697939 DRM signed audit log message - operation should be read instead of modify.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2036 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java2
-rw-r--r--pki/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java2
-rw-r--r--pki/base/console/src/com/netscape/admin/certsrv/connection/AdminConnection.java2
3 files changed, 4 insertions, 2 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java b/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
index afbf0c6c1..6c12c43b4 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/CMSAdminServlet.java
@@ -163,6 +163,8 @@ public final class CMSAdminServlet extends AdminServlet {
getSubjectName(req, resp);
else if (scope.equals(ScopeDef.SC_GET_NICKNAMES))
getAllNicknames(req, resp);
+ else if (scope.equals(ScopeDef.SC_CERT_PRETTY_PRINT))
+ getCertPrettyPrint(req, resp);
} else if (op.equals(OpDef.OP_MODIFY)) {
mOp = "modify";
if ((mToken = super.authorize(req)) == null) {
diff --git a/pki/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java b/pki/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java
index 4de04abdf..e5fc28135 100644
--- a/pki/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java
+++ b/pki/base/console/src/com/netscape/admin/certsrv/config/UserCertsTab.java
@@ -126,7 +126,7 @@ public class UserCertsTab extends CMSBaseUGTab {
nvps.add(Constants.PR_NICK_NAME, nickname);
nvps.add(Constants.PR_SERIAL_NUMBER, serialno);
nvps.add(Constants.PR_ISSUER_NAME, issuername);
- NameValuePairs results = mConnection.process(
+ NameValuePairs results = mConnection.read(
DestDef.DEST_SERVER_ADMIN, ScopeDef.SC_CERT_PRETTY_PRINT,
Constants.RS_ID_CONFIG, nvps);
if (nvps.size() <= 0)
diff --git a/pki/base/console/src/com/netscape/admin/certsrv/connection/AdminConnection.java b/pki/base/console/src/com/netscape/admin/certsrv/connection/AdminConnection.java
index db31aa09e..7539c393c 100644
--- a/pki/base/console/src/com/netscape/admin/certsrv/connection/AdminConnection.java
+++ b/pki/base/console/src/com/netscape/admin/certsrv/connection/AdminConnection.java
@@ -467,7 +467,7 @@ public class AdminConnection {
request.set(Constants.RS_ID, id);
for (int i = 0; i < pairs.size(); i++) {
NameValuePair p = (NameValuePair)pairs.elementAt(i);
- request.set(p.getName(), "");
+ request.set(p.getName(), p.getValue());
}
Response response = sendRequest(request);