jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-2891) VersionManagerImplRestore internalRestoreFrozen method has identity versus equals bug
Date Thu, 17 Feb 2011 15:43:24 GMT

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

Jukka Zitting updated JCR-2891:
-------------------------------

    Fix Version/s:     (was: 2.3.0)
                   2.2.5
                   2.1.4

Merged to the 2.2 branch in revision 1071647 and to the 2.1 branch in revision 1071652.

> VersionManagerImplRestore internalRestoreFrozen method has identity versus equals bug
> -------------------------------------------------------------------------------------
>
>                 Key: JCR-2891
>                 URL: https://issues.apache.org/jira/browse/JCR-2891
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.2.2
>         Environment: Exists in 2.2.4 version of code base (as well as 2.3)
>            Reporter: Matt Goodwin
>            Assignee: Stefan Guggisberg
>             Fix For: 2.1.4, 2.2.5
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> In method protected void internalRestoreFrozen(NodeStateEx state,
>                                          InternalFrozenNode freeze,
>                                          VersionSelector vsel,
>                                          Set<InternalVersion> restored,
>                                          boolean removeExisting,
>                                          boolean copy)
> in the VersionManagerImplRestore class line 557 the code performs an == instead of calling
the NodeId.equals() method.  We ran into problems with the code that executes below this (trying
to restore a folder node throws an ItemExistsException since same sibling not allowed on folder
nodes)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message