Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 03/23/2012
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Public Beta / 281956
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Win All
Vote Count: 0
This bug was found by David McGuigan.
Looks like CF10 added a pathExists check w/in expandPath(’/mapping’).
Repro:
Application.cfc
----------------------
component {
THIS.name = "TestExpandmapping";
THIS.mappings["/mymapping"] = "C:\";
}
index.cfm
----------------------
<cfscript>
fileWrite("c:\foobar.txt", "");
writeOutput(expandPath("/myMapping/foobar.txt") & ’<br />’);
fileDelete("c:\foobar.txt");
writeOutput(expandPath("/myMapping/foobar.txt") & ’<br />’);
directoryCreate("c:\foobar");
writeOutput(expandPath("/myMapping/foobar") & ’<br />’);
directoryDelete("c:\foobar");
writeOutput(expandPath("/myMapping/foobar"));
</cfscript>
CF9 said:C:\foobar.txt
C:\foobar.txt
C:\foobar
C:\foobar
CF10 said:C:\foobar.txt
N:\websites\BoltTest\www\myMapping\foobar.txt
C:\foobar
N:\websites\BoltTest\www\myMapping\foobar
(where "N:\websites\BoltTest\www" represents path to site root)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3146252
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: