o.a.j.webdav.jcr.DavResourceFactoryImpl#createResource creates 
VersionControlledResource instances regardless of mix:versionable status
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: JCR-2262
                 URL: https://issues.apache.org/jira/browse/JCR-2262
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-jcr-server
            Reporter: Stefan Guggisberg


DavResourceFactoryImpl#createResource() first calls createResourceForItem() 
which threats all nodes as version-controlled. 
it then calls isVersionControlled() which indirectly triggers a call to 
Node#getVersionHistroy(). 
getVersionHistroy throws a UnsupportedRepositoryException if the node is 
non-versionable, leading to a DavException further up the call stack.

as a consequence, every request for a non-versionable node leads to unnecessary 
(and expensive) exception generation which could be avoided by checking the 
mix:versionable status of a node.




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

Reply via email to