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

Weird behavior when deleting the head of the history of a renamed document

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.4 M1
    • 2.3 RC1
    • {Unused} Core
    • None
    • Easy

    Description

      Scenario:

      • Document Main.A has many versions
      • Rename it to Main.B
      • Delete the most recent version from the history

      Results:

      • You are redirected to the history for document Main.A, which doesn't exist ("The requested document could not be found.")
      • Document Main.A has been recreated with the version before the deleted one, but without any history at all
      • Document Main.B was left unchanged, in its most recent version
      • The history of Main.B was chopped, so the "current version" does not appear in its history.

      This is a side effect of XWIKI-1949, and although not a critical issue, it can cause inconsistencies in the database.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: