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

Setting the document creator doesn't always create a new revision

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5-milestone-1
    • 3.4
    • Old Core
    • None
    • Unit
    • Unknown

    Description

      The use case is the following:

      • Get a document: $xwiki.getDocument(...)
      • Make a change and save it
      • Set the creator reference
      • Save

      Result: the second save doesn't create a new revision.

      This is because setCreatorReference() doesn't set the metadata dirty flag to true.
      The same is true for setContentAuthorReference() and setAuthorReference().

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: