You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Ashley M (JIRA)" <ji...@apache.org> on 2006/02/22 21:36:39 UTC

[jira] Created: (JCR-326) Initialize the cause of a login exception in the repository

Initialize the cause of a login exception in the repository
-----------------------------------------------------------

         Key: JCR-326
         URL: http://issues.apache.org/jira/browse/JCR-326
     Project: Jackrabbit
        Type: Improvement
  Components: core  
    Versions: 1.0    
    Reporter: Ashley M
    Priority: Trivial


===================================================================
--- RepositoryImpl.java8(revision 379871)
+++ RepositoryImpl.java (working copy)
@@ -1056,7 +1056,9 @@
             }
             authCtx.login();
         } catch (javax.security.auth.login.LoginException le) {
-            throw new LoginException(le.getMessage());
+           LoginException nle = new LoginException(le.getMessage());
+           nle.initCause(le);
+           throw nle;
         }

         // create session

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (JCR-326) Initialize the cause of a login exception in the repository

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-326?page=all ]

Jukka Zitting updated JCR-326:
------------------------------

      Component: security
                     (was: core)
    Fix Version: 1.0
        Version: 0.9
                     (was: 1.0)
      Assign To: Jukka Zitting

> Initialize the cause of a login exception in the repository
> -----------------------------------------------------------
>
>          Key: JCR-326
>          URL: http://issues.apache.org/jira/browse/JCR-326
>      Project: Jackrabbit
>         Type: Improvement
>   Components: security
>     Versions: 0.9
>     Reporter: Ashley M
>     Assignee: Jukka Zitting
>     Priority: Trivial
>      Fix For: 1.0

>
> ===================================================================
> --- RepositoryImpl.java8(revision 379871)
> +++ RepositoryImpl.java (working copy)
> @@ -1056,7 +1056,9 @@
>              }
>              authCtx.login();
>          } catch (javax.security.auth.login.LoginException le) {
> -            throw new LoginException(le.getMessage());
> +           LoginException nle = new LoginException(le.getMessage());
> +           nle.initCause(le);
> +           throw nle;
>          }
>          // create session

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JCR-326) Initialize the cause of a login exception in the repository

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-326?page=all ]
     
Jukka Zitting resolved JCR-326:
-------------------------------

    Resolution: Fixed

Fixed in revision 382230.

> Initialize the cause of a login exception in the repository
> -----------------------------------------------------------
>
>          Key: JCR-326
>          URL: http://issues.apache.org/jira/browse/JCR-326
>      Project: Jackrabbit
>         Type: Improvement
>   Components: security
>     Versions: 0.9
>     Reporter: Ashley M
>     Assignee: Jukka Zitting
>     Priority: Trivial
>      Fix For: 1.0

>
> ===================================================================
> --- RepositoryImpl.java8(revision 379871)
> +++ RepositoryImpl.java (working copy)
> @@ -1056,7 +1056,9 @@
>              }
>              authCtx.login();
>          } catch (javax.security.auth.login.LoginException le) {
> -            throw new LoginException(le.getMessage());
> +           LoginException nle = new LoginException(le.getMessage());
> +           nle.initCause(le);
> +           throw nle;
>          }
>          // create session

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira