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.