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

Julian Reschke updated JCR-3711:
--------------------------------

    Attachment: JCR-3711.diff

proposed patch

> RepositoryChecker versioning cleanup may leave repaired node in invalid type 
> state
> ----------------------------------------------------------------------------------
>
>                 Key: JCR-3711
>                 URL: https://issues.apache.org/jira/browse/JCR-3711
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.4.5, 2.6.5, 2.7.3
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Minor
>         Attachments: JCR-3711.diff
>
>
> When detaching a version history, the repair code removes the mix:versionable 
> mixin. However, it leaves the jcr:uuid property alone. If the effective node 
> type of the repaired node does not allow a jcr:uuid property, the node will 
> be in an inconsistent state.
> The existing tests in AutoFixCorruptNode did not uncover this because they 
> use the default node type, nt:unstructured, in which case jcr:uuid falls back 
> to a residual property.
> The suggested fix (in addition to test inprovements) is to add the 
> mix:referenceable mixin.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to