Ticket #382 (new defect) — at Version 1

Opened 16 years ago

Last modified 15 years ago

Messages not broadcast in correct order when format is used

Reported by: Bud Schneehagen <buddy@…> Owned by:
Priority: high Milestone: 3.1 Maintenance Final
Version: 3.1.185 Severity: major
Keywords: Cc:

Description (last modified by boomfish) (diff)

Format-specific "broadcasts" blocks are running after other broadcasts in the same event. Here is a simple test case.

http://www.cf-ezcart.com/modelgluesamples/helloworld/?event=page.test&requestformat=remote

Change History

Changed 16 years ago by boomfish

  • priority changed from normal to high
  • summary changed from Event-type "before" blocks running after event-handler to Messages not broadcast in correct order when format is used
  • description modified (diff)
  • severity changed from normal to major

OUCH!

This is definitely a serious defect, but the original diagnosis of the cause (related to event types) was incorrect. The actual problem is that messages not tied to a format are always broadcast ahead of format-specific messages, even when that is not the order they are listed in.

Example:

<event-handler name="page.test">
	<broadcasts format="remote">
		<message name="remoteFunctions"/>
	</broadcasts>
	<broadcasts format="html">
		<message name="htmlFunctions"/>
	</broadcasts>
	<broadcasts>
		<message name="eventFunctions"/>
	</broadcasts>
</event-handler>

When the above event handler is executed, the "eventFunctions" message is always broadcast before the other two messages, even when the requestFormat is "remote" or "html".

Note: See TracTickets for help on using tickets.