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

If latest migration(s) should not execute, access to the database will be refused if migration are disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5-milestone-1
    • Component/s: Storage
    • Labels:
      None
    • Difficulty:
      Trivial
    • Similar issues:

      Description

      If the latest data migrations return false to the shouldExecute() request, these are not considered during the migration process, and therefore, the latest version store in the database is not the expected latest version. This will prevent access to this database when migration are later disabled.

      This patch force the version of the database to the lastest version if needed. This is the same behavior than when a later migration set the database to its own version, and the previous one(s) should not execute.

        Attachments

          Activity

            People

            Assignee:
            softec Denis Gervalle
            Reporter:
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: