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

It's possible to modify a document without getting a new entry in the history

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4.1, 6.0-milestone-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When history is enabled of course.

      You end up with the version properly set in the document table and rcs table but the actual history is not updated which mean among other things that you don't see your version version in the history view but the content is definitely changed.

      How to:

      document.setContentDirty(false);
      document.setMetaDataDirty(false);
      xwiki.saveDocument(document);
      

      We could say that it's a feature but the UI does not seems to be aware of such a feature...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: