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

Provide XObjectAddingEvent

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.10.7
    • Fix Version/s: None
    • Component/s: Model
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now we only trigger XObjectAddedEvent when the document is saved, but that could lead to problem if a listener try to perform a save and the event has been sent during a document creation. An example of such bug was XWIKI-18728. In order to avoid such usecase we should provide an XObjectAddingEvent to allow modifying the document before it's saved in the listener.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: