summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-07-26 20:40:08 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-08-03 17:07:13 -0500
commiteca4d635e67eaf3c6878d35acfaaf11df53151e2 (patch)
tree32d947e0eeec6a36ea9cc1e7ebf0804b487da7e2 /base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java
parent1d85941aa2f80f3da619504fe4310fe47cb5b036 (diff)
downloadpki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.tar.gz
pki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.tar.xz
pki-eca4d635e67eaf3c6878d35acfaaf11df53151e2.zip
Moved REST services into separate URLs.
To support different access control configurations the REST services have been separated by roles. Services that don't need authentication will be available under /rest. Services that require agent rights will be available under /rest/agent. Services that require admin rights will be available under /rest/admin. Ticket #107
Diffstat (limited to 'base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java')
-rw-r--r--base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java b/base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java
index d98d8f93d..63af4101a 100644
--- a/base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java
+++ b/base/common/src/com/netscape/cms/servlet/csadmin/ConfigurationErrorInterceptor.java
@@ -41,7 +41,8 @@ public class ConfigurationErrorInterceptor implements ClientErrorInterceptor {
String contentType = headers.getFirst("Content-Type");
// handle XML content only
- if (!contentType.startsWith(MediaType.TEXT_XML)) return;
+ System.out.println("Content-type: "+contentType);
+ if (!contentType.startsWith(MediaType.APPLICATION_XML)) return;
CMSException exception;