Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
JCR Base 2.0.2
-
None
Description
There should be a check whether the repository actually supports locking before a query is executed to get the lock tokens. Similarly the SessionPool should first check if observation is supported by the repository before the ObservationManager is obtained. In both cases it may happen that a repository that does not support one or the other feature throws a RepositoryException, which causes the session to be closed. This effectively makes the SessionPool useless in that case.