jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Alexeyev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-134) Unreferenced VersionHistory should be deleted automatically.
Date Mon, 11 Aug 2008 13:35:44 GMT

    [ https://issues.apache.org/jira/browse/JCR-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621448#action_12621448
] 

Oleg Alexeyev commented on JCR-134:
-----------------------------------

IMO, this covers at least the most important use case.

Actually, "node.remove() after all versions (except the root version) have been deleted" is
not possible as the node refers to one of the versions. So, we tried to clean up VH, we used
node.remove() and then VH.removeVersion() for each Version returned by getAllVersions() enumeration
except the root one. This approach works, but leaves VH and root version nodes.

Thanks for approaching this issue! :)

> Unreferenced VersionHistory should be deleted automatically.
> ------------------------------------------------------------
>
>                 Key: JCR-134
>                 URL: https://issues.apache.org/jira/browse/JCR-134
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: versioning
>            Reporter: Tobias Bocanegra
>            Assignee: Tobias Bocanegra
>            Priority: Minor
>         Attachments: jackrabbit-1.4.x-JCR-134-first-try-2008-08-11.patch
>
>
> since the creation of a VersionHistory is triggered by the creation of a mix:versionable
node, the removal should happen automatically, as soon as no references to that version histroy
exist anymore. this is the case, when all mix:versionable nodes (in all workspaces) belonging
to that VH are deleted, and all the versions in the VH are removed i.e. only the jcr:rootVersion
is left. At this point, the VH should be deleted aswell.

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