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