Archive for February 2010
Feb/10
19
ColdFusion Mappings and Relative Paths
No comments · Posted by Elliott in Adobe, ColdFusion, Programming
Recently one of our applications started failing inconsistently with strange errors about certain files not existing. We’d see error emails about things like the /myapplication/views/pages/survey.cfm not existing which didn’t make any sense since /myapplication is a mapping created inside the Application.cfc <cfset this.mappings[“/myapplication”] = expandPath(“../”)> See the bug there? ExpandPath() is relative to the requested […]
No tags