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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.13
    • Fix Version/s: 1.4.12, 1.5.14, 1.6.0
    • Component/s: upgrade
    • Labels:
      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

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: