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

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

    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.rekawek, alexparvulescu

      Attachments

        1. OAK-5112-test.patch
          0.9 kB
          Alex Deparvu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: