application.fc.lib.error.showErrorPage() throws error if a farcry type that no longer exists

Description

If application.fc.lib.error.showErrorPage() is called for a farcry type that no longer exists error is thrown

Message: key [xxxxxx] doesn't exist

The Error Occurred in
/var/www/farcry/core/packages/lib/error.cfc: line 586
584: <!--- in the case of data views (json, xml, etc), return stream the data back in that type --->
585: <cfif isdefined("url.type") and len(url.type) and isdefined("url.view") and len(url.view)
586: and structkeyexists(application.stCOAPI[url.type].stWebskins,url.view)
587: and isdefined("application.stCOAPI.#url.type#.stWebskins.#url.view#.viewStack")
588: and application.stCOAPI[url.type].stWebskins[url.view].viewStack eq "data"

Environment

None

Activity

Show:

Andrew Mercer April 10, 2018 at 1:09 AM

added extra tests on application.stCOAPI struct

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 9, 2018 at 11:26 PM
Updated April 11, 2018 at 2:20 AM
Resolved April 11, 2018 at 2:20 AM