It looks like this has been taken out of the beta site, so I thought I would
send this my question to you.

The methodology I program in is Fusebox.  The primary reason for this, is
that securing any application or subappilcations can be done with the
following code in application.cfm:

<cfparam name="attributes.web_path" default="http://www.mywebsite.com/";>
<cfparam name="attributes.admin_disk_path"
default="D:\pubtemp\admin\index.cfm">
<!---
<cfif CF_TEMPLATE_PATH NEQ attributes.admin_disk_path>
  <cflocation url="#attributes.web_path#" addtoken="YES">
</cfif>

In fusebox, the user never leaves the index page and if they do, chances are
they are up to no good, so I send them back to the front of the website.

This has presented a problem using Harpoon.  Any page that has a tool kit
swf on it, blows up.  Well actually it doesn't blow up, it just doesn't show
the flash file.  My guess was that there is some request that is actually
grabbing from a direct url.  Best guess was the following parameter

<param name=movie
value="/support/swf/cascadingmenu.swf?CallBackUrl=http%3A%2F%2Fwww%2Emywebsi
te%2Ecom%2Fsupport%2Ftemplates%2Ffetchdata%2Ecfm%3FUUID%3D10B63A0D%2D3C91%2D
11D5%2D8FF5004033D2743B%26CurrentTag%3DCascadingMenu">

I tracked this down to support/templates/uitoolkitinitialize.cfm where on
line 51 the variable CallBackUrl is set.

<CFSET CallBackUrl =
"http://#cgi.http_host##request.uitoolkitsupportpath#templates/fetchdata.cfm
?UUID=#variables.UUID#&CurrentTag=#Variables.CurrentTag#">

So I changed it to

 <CFSET CallBackUrl =
"http://#cgi.http_host#/index.cfm?fuseaction=callback&UUID=#variables.UUID#&;
CurrentTag=#Variables.CurrentTag#">

Now the request is coming from my index.cfm page wherein the case for the
fuseaction "callback" is simply

 <cfcase value="callback">
  <cfinclude template="support/templates/fetchdata.cfm">
 </cfcase>

This works just fine.  Does this have any other global ramifications
throughout the rest of the toolkit tags?

Any thoughts would be appreciated.

Sean Renet


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to