Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2891

VersionManagerImplRestore internalRestoreFrozen method has identity versus equals bug

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.1.5, 2.2.5
    • jackrabbit-core
    • None
    • Exists in 2.2.4 version of code base (as well as 2.3)

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              stefan@jira Stefan Guggisberg
              mgoodwin1989 Matt Goodwin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 10m
                  10m
                  Remaining:
                  Remaining Estimate - 10m
                  10m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified