jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-736) Wrong exeption returned from Repository.login(Credentials, String)
Date Wed, 07 Feb 2007 08:38:05 GMT

     [ 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.


Mime
View raw message