Ticket #140 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

attributes scope not available in exception handler

Reported by: scorfield Owned by: scorfield
Type: defect Priority: normal
Milestone: Fusebox 5.1 Component: Fuxebox 4.1 Compatibility
Version: 5.0 Severity: normal
Keywords: Cc:

Description

I see that the ATTRIBUTES structure is created first thing in the fusebox5.cfm core file.

So, I went into production mode... Placed <cfdump var="#variables.attributes#"> at the top of the parsed file in question and guess what?
It contained all of the URL parameters as expected.
Hmm... I then placed the same cfdump in the fusebox.securityException.cfm and see that the ATTRIBUTES structure has now been destroyed!

Somewhere, the structure is getting destroyed. Not sure where at this point.

Attachments

Change History

Changed 2 years ago by scorfield

  • owner changed from sean@corfield.org to scorfield
  • status changed from new to assigned

The problem is that errortemplates/ are included by the handleException() method on fuseboxApplication and the attributes scope is not passed in. Nor is myFusebox so that won't be available either.

Changed 2 years ago by scorfield

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

(In [255]) Fixes #140 by passing attributes and myFusebox to the handler.
Also renamed all of the local variables to be less likely to clash with any user-defined variables.

Changed 2 years ago by scorfield

(In [256]) Fixes #140 by passing attributes and myFusebox to the handler.
Also renamed all of the local variables to be less likely to clash with any user-defined variables.

Note: See TracTickets for help on using tickets.