You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2008/03/18 12:52:20 UTC

svn commit: r638335 - /incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java

Author: bdelacretaz
Date: Tue Mar 18 04:52:18 2008
New Revision: 638335

URL: http://svn.apache.org/viewvc?rev=638335&view=rev
Log:
SLING-327 - add info to the 503 and 500 errors, to help troubleshooting

Modified:
    incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java

Modified: incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java?rev=638335&r1=638334&r2=638335&view=diff
==============================================================================
--- incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java (original)
+++ incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java Tue Mar 18 04:52:18 2008
@@ -384,7 +384,7 @@
 
             try {
                 response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE,
-                    "Too Many Users");
+                    "SlingAuthenticator: Too Many Users");
             } catch (IOException ioe) {
                 log.error("authenticate: Cannot send status 503 to client", ioe);
             }
@@ -405,7 +405,7 @@
             try {
                 response.sendError(
                     HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
-                    "Data Access Failure");
+                    "SlingAuthenticator: data access error, reason=" + reason.getClass().getSimpleName());
             } catch (IOException ioe) {
                 log.error("authenticate: Cannot send status 500 to client", ioe);
             }