jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r382230 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Thu, 02 Mar 2006 01:31:15 GMT
Author: jukka
Date: Wed Mar  1 17:31:13 2006
New Revision: 382230

URL: http://svn.apache.org/viewcvs?rev=382230&view=rev
Log:
JCR-326: Better login error reporting.

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=382230&r1=382229&r2=382230&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Wed Mar  1 17:31:13 2006
@@ -1056,7 +1056,8 @@
             try {
                 subject = Subject.getSubject(acc);
             } catch (SecurityException se) {
-                throw new LoginException(se.getMessage());
+                throw new LoginException(
+                        "Unable to access authentication information", se);
             }
             if (subject == null) {
                 throw new LoginException("No Subject associated with AccessControlContext");
@@ -1066,7 +1067,7 @@
                 return createSession(subject, workspaceName);
             } catch (AccessDeniedException ade) {
                 // authenticated subject is not authorized for the specified workspace
-                throw new LoginException(ade.getMessage());
+                throw new LoginException("Workspace access denied", ade);
             }
         }
 



Mime
View raw message