dmCSS edit handler breaks if underlying CSS file is missing from file system
Description
Edit handler should be clever/robust enough to cater for a missing underlying CSS file!
An error occurred when performing a file operation read on file C:/Webapps/farcrydaemon/www/css/dmStyle.css. The cause of this exception was: java.io.FileNotFoundException: C:\Webapps\farcrydaemon\www\css\dmStyle.css (The system cannot find the file specified).
The error occurred in C:\Farcry\head\farcry_core\packages\types_dmCSS\edit.cfm: line 128 Called from C:\Farcry\head\farcry_core\packages\types\dmCSS.cfc: line 42 Called from C:\Farcry\head\farcry_core\tags\navajo\edit.cfm: line 115 Called from C:\Farcry\head\farcry_core\admin\edittabEdit.cfm: line 45 Called from C:\Farcry\head\farcry_core\packages\types_dmCSS\edit.cfm: line 128 Called from C:\Farcry\head\farcry_core\packages\types\dmCSS.cfc: line 42 Called from C:\Farcry\head\farcry_core\tags\navajo\edit.cfm: line 115 Called from C:\Farcry\head\farcry_core\admin\edittabEdit.cfm: line 45
Note this feature is scheduled for deletion in 6.1 release.
Geoff Bowers
September 23, 2010 at 12:58 PM
Wow. Looks like dmCSS.cfc content type is not using formtools to render its edit handler. That means its broken since the release of v4.x.
Not sure that anyone uses this anymore but probably need to retain in place for a while as the installer still puts in a default style object in the tree root.
Edit handler should be clever/robust enough to cater for a missing underlying CSS file!
An error occurred when performing a file operation read on file C:/Webapps/farcrydaemon/www/css/dmStyle.css.
The cause of this exception was: java.io.FileNotFoundException: C:\Webapps\farcrydaemon\www\css\dmStyle.css (The system cannot find the file specified).
The error occurred in C:\Farcry\head\farcry_core\packages\types_dmCSS\edit.cfm: line 128
Called from C:\Farcry\head\farcry_core\packages\types\dmCSS.cfc: line 42
Called from C:\Farcry\head\farcry_core\tags\navajo\edit.cfm: line 115
Called from C:\Farcry\head\farcry_core\admin\edittabEdit.cfm: line 45
Called from C:\Farcry\head\farcry_core\packages\types_dmCSS\edit.cfm: line 128
Called from C:\Farcry\head\farcry_core\packages\types\dmCSS.cfc: line 42
Called from C:\Farcry\head\farcry_core\tags\navajo\edit.cfm: line 115
Called from C:\Farcry\head\farcry_core\admin\edittabEdit.cfm: line 45
126 : <cfset description = stObj.description>
127 : <cfif stObj.filename NEQ "">
128 : <cffile action="read" file="#application.path.project#/www/css/#stObj.filename#" variable="cssContent">
129 : </cfif>
130 : </cfif>