Ticket #59 (closed defect: fixed)

Opened 20 years ago

Last modified 19 years ago

Redirect in result doesn't work

Reported by: jura.khrapunov@… Owned by: joe.rinehart
Priority: highest Milestone: 2.0 Beta 1 Bugfixes
Version: 2.0.304 Severity: critical
Keywords: Cc:

Description

When using redirect="true" attribute of the <result> tag in ModelGlue?.xml following exception thrown:

Message: The selected method forward was not found.

Detail: Either there are no methods with the specified method name and argument types, or the method forward is overloaded with arguments types that ColdFusion? can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.

Tag Context: C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (334) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (268) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\framework\ModelGlue?.cfc (241) C:\daemons\CFusionMX7\webadmin\ModelGlue?\unity\ModelGlue?.cfm (47) D:\projects\undpsk\anticorruption\index.cfm (33)

If I remove the redirect attribute everything works as expected. Both event-handlers configured properly and working fine until I need to externally redirect the result. Just for your info, ModelGlue?.xml snippet which doesn't work:

<event-handler name="show">
<broadcasts>
	<message name="needContent" />
</broadcasts> 
<results>
	<result do="layout" />
</results>
<views>
	<include name="body" template="showPage.cfm" />
</views>
</event-handler>

<event-handler name="showContent">
<broadcasts /> 
<results>
	<result do="show" redirect="true" append="content_id"  />
</results>
<views />
</event-handler>

<event-handler name="layout">
<broadcasts />
<results />
<views>
	<include name="template" template="layout.cfm" />
</views>
</event-handler>

Change History

Changed 20 years ago by joe.rinehart

  • owner changed from somebody to joe.rinehart
  • status changed from new to assigned

Thanks, I'll fix this. Thanks for the great, full information, btw!

Changed 20 years ago by joe.rinehart

  • priority changed from normal to highest
  • milestone set to Resolve Public Beta 1 Defects

Changed 20 years ago by joe.rinehart

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [168]. Feel free to get latest via SVN. The next .zip build will be going out this evening or this weekend.

Note: See TracTickets for help on using tickets.