Hi all,

There are some instances of invalid fuseActions that the core files
don't seem to address.  I understand that things like FuseQ and FEX will
allow global error handlers, but surely the core fusebox files, if
handling some fuseaction errors, should handle all?

I would make the modifications myself, but I am not sure how to get new
core files "accepted" by fusebox.

Try this on any site that uses FB3, replacing www.site.com with your own
address, and "foo" and "bar" where appropriate.

Assumptions:
http://www.site.com/index.cfm?fuseaction=foo.bar - assume this is valid.
http://www.site.com/index.cfm?fuseaction=bar.anything - assume there is
no folder called bar, and hence no fuseactions inside it.

Tests:
http://www.site.com/index.cfm?fuseaction=foo.cat - invalid, FB core if
setup to suppress errors will catch the error appropriately, as foo is a
valid circuits directory.

http://www.site.com/index.cfm?fuseaction=bar.foo - invalid, FB core
doesn't catch this, as no folder called bar, and returns:

+-----------------------------------------------------
| An error occurred while evaluating the expression: 
| FB_.fullPath=ListRest(fusebox.Circuits[fusebox.TargetCircuit], "/");
//make a variable to hold the full path down to the target, excluding
the root
| FB_.Corepath=""; //initialize
| fusebox.thisCircuit=fusebox.HomeCircuit; //current circuit, set to
root now
+-----------------------------------------------------

http://www.site.com/index.cfm?fuseaction=bar. (with trailing '.') -
invalid, FB core doesn't catch this, and returns:

http://www.site.com/index.cfm?fuseaction=bar - invalid, FB core doesn't
catch this, and returns:
(it doesn't matter if suppresserrors is true or false).

+-----------------------------------------------------
+ An error occurred while evaluating the expression: 
+ FB_.rawFA = attributes.fuseaction; //preserve the original fuseaction
+ if (ListLen(FB_.rawFA, '.') is 1 and Right(FB_.rawFA,1) is '.')
+       //circuit only specified, no fuseaction such as
"fuseaction=circuit."
+       fusebox.fuseaction = "fusebox.defaultfuseaction";
+ else
+ etc...
+-----------------------------------------------------

Thanks all

Steve

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to