tracker issue : CF-4024546

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

Unexpected behavior with symlink folders on Linux

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): danny armstrong / danny armstrong (danny armstrong)

Created: 07/22/2015

Components: General Server

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Linux

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on February 18, 2019 using build 2016.0.01.298513
Problem Description:
Accessing cfm or cfc contained in directory that is a symlink will result in unexpected paths in CGI.CF_TEMPLATE_PATH and CGI.PATH_TRANSLATED as well as unexpected results from #expandPath(CGI.script_name)#. CF 9 does not exhibit the issue.

Steps to Reproduce:
on Ubuntu 12.04 or 14.04 (or I expect any Linux, but haven't tried): 
download attached tar.gz file
extract in webroot
expect folder structure as:
__ real_test_folder/
____ test_file.cfm
symlink real_test_folder to symlinked_test_folder with commands:
> cd symlink_issue
> ln -s real_test_folder symlinked_test_folder
in browser hit url http://localhost/symlink_issue/symlinked_test_folder/test_file.cfm
observe cfdump of CGI scope

Actual Result:
cgi.cf_template_path variable equal to "/my/webroot/symlink_issue/real_test_folder/test_file.cfm"

Expected Result:
cgi.cf_template_path variable equal to "/my/webroot/symlink_issue/symlinked_test_folder/test_file.cfm"; the same behavior as ColdFusion 9

Any Workarounds:
none known

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4024546

External Customer Info:
External Company:  
External Customer Name: danny
External Customer Email:  
External Test Config: My Hardware and Environment details:

InstallKit	Native UNIX

appserver	Tomcat

expiration	{ts '2015-07-18 22:44:53'}

productlevel	Standard

productname	ColdFusion Server

productversion	11,0,05,293506

rootdir	/opt/coldfusion11/cfusion



updatelevel	05

additionalinformation	Linux

arch	amd64

buildnumber	[empty string]

name	UNIX

version	3.13.0-55-generic


  1. July 23, 2015 00:00:00:


It looks like this was an issue that may have existed in CF 7, but was fixed in CF 9 and is back to broken in CF 11:
Comment by External U.
6471 | July 22, 2015 09:09:45 PM GMT
CF_TEMPLATE_PATH /opt/coldfusionraijin/cfusion/wwwroot/symlink_issue/symlinked_test_folder/test_file.cfm Fixed Testcase added : //depot/qa/cf/regression/newmanual/scopes/CGI/bugCF-4024546
Comment by Nitin K.
6472 | September 22, 2015 02:01:41 AM GMT
Hi Adobe, Unable to repro issue on Windows 10, as CF11 Update 7 ( and CF2016 Update 1 (2016.0.01.298513) behave correctly for both 'Windows directory symbolic link' (directory soft link) (mklink /d) and 'Windows directory junction' (directory hard link) (mklink /j). Thanks!, -Aaron
Comment by Aaron N.
30296 | February 18, 2019 12:44:17 AM GMT