incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r992262 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
Date Fri, 03 Sep 2010 10:53:45 GMT
Author: ieb
Date: Fri Sep  3 10:53:45 2010
New Revision: 992262

URL: http://svn.apache.org/viewvc?rev=992262&view=rev
Log:
SLING-1727 Handling AccessDeniedException to avoid meaningless traceback at info level.

Modified:
    sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java

Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java?rev=992262&r1=992261&r2=992262&view=diff
==============================================================================
--- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
(original)
+++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractSlingPostOperation.java
Fri Sep  3 10:53:45 2010
@@ -24,6 +24,7 @@ import java.util.List;
 import java.util.NoSuchElementException;
 import java.util.Set;
 
+import javax.jcr.AccessDeniedException;
 import javax.jcr.Item;
 import javax.jcr.ItemNotFoundException;
 import javax.jcr.Node;
@@ -134,6 +135,10 @@ public abstract class AbstractSlingPostO
                 }
             }
 
+        } catch ( AccessDeniedException e ) {
+            log.error("Access Denied {} ",e.getMessage());
+            log.debug("Access Denied Cause ", e);
+            response.setError(e);
         } catch (Exception e) {
 
             log.error("Exception during response processing.", e);



Mime
View raw message