tracker issue : CF-4201529

select a category, or use search below
(searches all categories and all time range)
Title:

UNIX and Windows CFINCLUDE inconsitancy

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Tim McCracken / Tim McCracken ()

Created: 03/14/2018

Components: Performance

Versions: 2016

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: ALL /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem Description: Windows and UNIX systems handle file inclusion differently. Windows doens't care about uppercase/lowercase but UNIX does

Steps to Reproduce:
Create file named includeFile.cfc. Include it using <cfinclude template="includefile.cfc"/>
run the application. 

Actual Result:
On windows, runs without issue.
On Unix, file is not found.

Expected Result: I expect windows should also error 'file not found' to be consistent with UNIX. 
I'm sure this is because of the Windows and how it handles prettypath, but i would think the core of ColdFusion can be made to force it to look for paths based on uppercase/lowercase characters

Any Workarounds:
use consistent cases.

Attachments:

Comments:

Tim, the behavior has been around since the earlier versions of ColdFusion. Fixing it to force an error will break existing apps on Windows.
Comment by Vamseekrishna N.
64 | March 14, 2018 03:43:33 AM GMT
As mentioned below, this is as Designed. Fixing this will break backward compatibility. Closing this track.
Comment by Poonam J.
65 | March 20, 2018 07:23:54 AM GMT