Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8062

R40001XWIKI7540DataMigration is skipped unintentionally

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.1.3
    • Fix Version/s: 4.2-milestone-1, 4.1.4
    • Component/s: Annotations
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      Description

      The skipping of the migration done in XWIKI-8036 was not implemented in the right place. It seems that the shouldExecute() method is not able to properly read the database (to read pages and objects) because it is executed before any of the migrations are executed.

      To fix this, the code that checks the annotation and comments class needs to be executed inside the migration itself. This makes sure that all the previous migrations are executed and that the database is in a readable state, at least for the current code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                enygma Eduard Moraru
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: