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

Version history recovery fails in case a version does not have a jcr:frozenNode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.10, 2.3.1
    • versioning
    • None

    Description

      With JCR-2551 in place, a version recovery mode has been introduced. Problem now is that in case a version is encountered that misses a mandatory jcr:frozenNode, an InternalError is thrown by o.a.j.c.version.InternalVersionHistoryImpl#createVersionInstance. Since o.a.j.c.RepositoryChecker#checkVersionHistory only catches Exception, it fails to catch it properly which leads to a complete repository shutdown.

      Throwing for example a RuntimeException instead fixes the problem.

      Attachments

        1. JCR-3017.patch
          4 kB
          Julian Reschke

        Issue Links

          Activity

            People

              reschke Julian Reschke
              hwong Honwai Wong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: