jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-2262) o.a.j.webdav.jcr.DavResourceFactoryImpl#createResource creates VersionControlledResource instances regardless of mix:versionable status
Date Mon, 31 Aug 2009 15:20:32 GMT

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

Stefan Guggisberg updated JCR-2262:
-----------------------------------

    Attachment: JCR-2262.patch

attached patch which does check mix:versionable status beforehand

> 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
>         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.


Mime
View raw message