tracker issue : CF-3146252

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

expandPath("/mymapping") resolving improperly

| View in Tracker

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:

Related thread: http://prerelease.adobe.com/r/?b1c44b62a3f0485ca229bb616e687337
Comment by External U.
20008 | March 23, 2012 03:38:24 AM GMT
This was fixed before the ticket was created. I was asked to create a ticket anyways. It can be marked closed/fixed.
Comment by External U.
20009 | March 24, 2012 05:43:42 AM GMT
Verified this is fixed in CF10 Final (build 10,282462). Thanks! -Aaron
Comment by External U.
20010 | May 28, 2012 10:13:30 PM GMT