From 7c90fda9478d4de824e7baf487abe697fe6df73f Mon Sep 17 00:00:00 2001 From: Sanjay Dalal Date: Wed, 31 Mar 2010 22:43:35 +0000 Subject: [PATCH] CSPACE-1050 disabled construction of uriresource as HTTP HEAD and OPTIONS are not yet mapped to CSpaceActions that could be permitted mvn tests at services level including client tests M common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java --- .../services/common/security/SecurityInterceptor.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java b/services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java index 2cd6428e3..8ab593d8d 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java +++ b/services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java @@ -85,7 +85,7 @@ public class SecurityInterceptor implements PreProcessInterceptor { logger.debug("received " + httpMethod + " on " + uriPath); } AuthZ authZ = AuthZ.get(); - CSpaceResource res = new URIResourceImpl(uriPath, httpMethod); +// CSpaceResource res = new URIResourceImpl(uriPath, httpMethod); // if (!authZ.isAccessAllowed(res)) { // logger.error("Access to " + res.getId() + " is NOT allowed to " + // " user=" + AuthN.get().getUserId()); @@ -93,10 +93,10 @@ public class SecurityInterceptor implements PreProcessInterceptor { // Response.Status.FORBIDDEN).entity(uriPath + " " + httpMethod).type("text/plain").build(); // throw new WebApplicationException(response); // } - if(logger.isDebugEnabled()) { - logger.debug("Access to " + res.getId() + " is allowed to " + - " user=" + AuthN.get().getUserId()); - } +// if(logger.isDebugEnabled()) { +// logger.debug("Access to " + res.getId() + " is allowed to " + +// " user=" + AuthN.get().getUserId()); +// } return null; } } -- 2.47.3