jackalope/jackalope-doctrine-dbal

Should throw WorkspaceNotFoundException if workspace doesn't exist.

dantleech opened this issue · 1 comments

If you attempt $session->getRootNode() on Jackrabbit when the workspace does not exist but you receive a WorkspaceNotFoundException, on Doctrine-Dbal you get PathNotFoundException.

It is thrown here which throws a PathNotFoundException is there are no query results - which does not give an indication as to if the workspace exists or not.

dbu commented

i guess this happens only if checking for workspace existence is disabled. we could trigger the workspace existence check on the fist not found exception (but cache the result in case several path not found are triggered)