Catch undeclared exceptions in AbstractSlingRepository.login
------------------------------------------------------------
Key: SLING-702
URL: https://issues.apache.org/jira/browse/SLING-702
Project: Sling
Issue Type: Improvement
Components: JCR
Affects Versions: JCR Base 2.0.2
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: JCR Base 2.0.4
Jackrabbit seems to throw an IllegalStateException on Repository.login when the
repository has been shut down. This is an unexpected situation since the
Repository.login method is declared to throw the following exceptions only:
* @throws LoginException If the login fails.
* @throws NoSuchWorkspaceException If the specified
<code>workspaceName</code> is not recognized.
* @throws RepositoryException if another error occurs.
Hence, the situation of the repository already having been shut down is
expected to throw a RepositoryException and not an IllegalStateException.
To fix this situation, the AbstractSlingRepository.login method is to be
modfiied to catch undeclared exceptions and repackage them as
RepositoryException instances.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.