You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2007/02/07 09:38:05 UTC

[jira] Resolved: (JCR-736) Wrong exeption returned from Repository.login(Credentials, String)

     [ https://issues.apache.org/jira/browse/JCR-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-736.
-------------------------------

    Resolution: Cannot Reproduce
      Assignee: Jukka Zitting

Are you sure about this? I just tested with the following code snippet and received the correct exception.

    Repository repository = new TransientRepository();
    try {
        repository.login("foo");
    } catch (NoSuchWorkspaceException e) {
        System.out.println("No such workspace!");
    }

Note that NoSuchWorkspaceException extends RepositoryException, so you'd get the same result if you used RepositoryException in the catch statement above.

Resolving as Cannot Reproduce.

> Wrong exeption returned from Repository.login(Credentials, String)
> ------------------------------------------------------------------
>
>                 Key: JCR-736
>                 URL: https://issues.apache.org/jira/browse/JCR-736
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: JCR API
>    Affects Versions: 1.2.1
>         Environment: JRE 1.5.0_10, JBoss 4.0.5 GA, JBossWS 1.0.4 GA, WinXP SP2
>            Reporter: Iaacov Rosenberg
>         Assigned To: Jukka Zitting
>
> According to specification, calling Repository.login(Credentials, String) with a non-existent wokspaceName should return NoSuchWorkspaceException.
> In fact it returns RepositoryException.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.