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

It's possible to directly modify document reference from velocity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0, 3.1 M1, 2.7.2
    • 2.7.1, 3.0 RC1
    • {Unused} APIs
    • None
    • Unknown

    Description

      Document#getDocumentReference directly return the reference which is modifiable.

      There is at least two issues here:

      • the API is not supposed to allow modifying direct a document reference, you have to use rename
      • since it's not cloned the cached document could be modified and corrupted

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: