]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-1050 disabled construction of uriresource as HTTP HEAD and OPTIONS are not...
authorSanjay Dalal <sanjay.dalal@berkeley.edu>
Wed, 31 Mar 2010 22:43:35 +0000 (22:43 +0000)
committerSanjay Dalal <sanjay.dalal@berkeley.edu>
Wed, 31 Mar 2010 22:43:35 +0000 (22:43 +0000)
mvn tests at services level including client tests

M    common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java

services/common/src/main/java/org/collectionspace/services/common/security/SecurityInterceptor.java

index 2cd6428e37cfb79f649b699953648b0e8f606e93..8ab593d8d62fa6c2609dabaa11176ad44a27804a 100644 (file)
@@ -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;
     }
 }