Fusebox 5.5 Application.cfc and webservice bug

March 20, 2008

I just discovered a bug in Fusebox 5.5.1. You can replicate it by downloading the sample application from Fusebox.org.

If you create a CFC at the same level as your Application.cfc and call it as a webservice, it fails on line 32 of Fusebox.Application.cfc with the message

"Variable FORM is undefined. "

I solved this by changing the code in Fusebox5.Application.cfc to:

<cfif StructKeyExists(Variables, "URL")>
  <cfset structAppend(attributes,URL,true) />
</cfif>
<cfif StructKeyExists(Variables, "form")>
  <cfset structAppend(attributes,form,true) />
</cfif>

* Update *

Sean Corfield has now raised a ticket (#330) for this and added the fix to the Core files. He also spotted another scenario where this might occur. For now you need to download the latest trunk/corefiles/Application.cfc file from the SVN if you have the same problem until Fusebox 5.6 is released.


No comments

Leave a comment

If you found this post useful, interesting or just plain wrong, let me know - I like feedback :)

Please note: If you haven't commented before, then your comments will be moderated before they are displayed.