Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1206

Publish event broadcasted before document is published (when accepting request)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.28.00
    • 2.28.00
    • None

    Description

      When a publication request is accepted, the publish event is broadcasted on the event bus before the document is actually published.

      This causes incorrect / inconsistent behaviour in event handlers on the basis of the assumption that the document is published. While the event handler is executing code, the document is published at some point, so the resulting behaviour depends on timing.

      For an example see the workflow event listener in de developer trail [1].

      Issue observed in trunk, but probably also present in 7.9 branch.

      [1] http://www.onehippo.org/trails/developer-trail/develop-advanced-features/calculate-average-ratings.html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nvankampenhout Niels van Kampenhout
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: