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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5-milestone-1
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: