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

o.a.j.o.plugins.migration.version.VersionableEditor should create the version storage node, if needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.64.0
    • core

    Description

      The method VersionableEditor#createEmptyHistory() is called if the migration of versions is disabled, but the node type of a migrated node strictly requires it to be versionable, because it inherits from mix:versionable (so that mix:versionable can't simply be removed). This may fail if the version storage node has not been explicitly created before the migration. Just creating the necessary node would be a more straightforward behavior.
      Also we should change the name of that method, see OAK-10783.

      Attachments

        Issue Links

          Activity

            People

              baedke Manfred Baedke
              baedke Manfred Baedke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: