Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5112

oak-upgrade breaking versionStorage node when started with copy-versions=false

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.13
    • 1.4.12, 1.5.14, 1.6.0
    • upgrade
    • None

    Description

      The attempt to sidegrade a repository and only keep the versionStorage of certain paths failed with a broken /jcr:system/jcr:versionStorage node when applying the following sequence:

      java -jar oak-upgrade-1.6-SNAPSHOT.jar repository repository-temp  --copy-versions=false
      java -jar oak-upgrade-1.6-SNAPSHOT.jar repository repository-temp  --copy-versions=true --include-paths=/path/requiring/versions
      

      After first and second attempt the versionStorage node exists but has no primaryType. Startup works but fails when ever new nodes would be created underneath jcr:versionStorage.

      The issue can be checked via oak-run console and running the following command

      session.store.root.builder().getChildNode('jcr:system').getChildNode('jcr:versionStorage').getProperties()
      

      //cc Tomek Rękawek, Alexandru Parvulescu

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tomek.rekawek Tomek Rękawek
            dsuess Dominik Süß
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment