You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2010/01/15 15:29:54 UTC

[jira] Updated: (JCR-2262) o.a.j.webdav.jcr.DavResourceFactoryImpl#createResource creates VersionControlledResource instances regardless of mix:versionable status

     [ https://issues.apache.org/jira/browse/JCR-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated JCR-2262:
------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.0
         Assignee: angela
           Status: Resolved  (was: Patch Available)

applied patch with minor modification

> 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
>            Assignee: angela
>             Fix For: 2.1.0
>
>         Attachments: JCR-2262.patch
>
>
> 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.