Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Tim Parker / Tim Parker (Tim Parker)
Created: 06/06/2016
Components: Debugging
Versions: 2016
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Major / All users will encounter
Locale/System: ALL / Linux All
Vote Count: 0
Problem Description: Stack traces report inconsistent paths for modules in the same directory - module called directly by web server shows symlink (un-translated), other modules (called by the originally-requested module) use the target of the symlink. This inconsistent handling of symlinks is seen both at the Java level (stack trace available via exception object) and in a dumped CF exception (these steps use a simple exception to demonstrate the problem)
For our application, this is critical, since we're inspecting the call stack to ensure that a module is called only from an approved location (example: ensure that 'build-a-datasource.cfm' is only called from '.../installation/setup.cfm' and not from any arbitrary location)
Steps to Reproduce:
Create a directory 'A' at the web root
Create a symbolic link 'B', also at the web root, which points to a (ln -s A B)
Create two modules in this directory:
dump-stack.cfm:
<cfset a=b> <!--- this will throw an exception, including the stack trace if 'Enable Robust Exception Information' is checked in CF Admin's 'Debug Output Settings' -->
call-dump-stack.cfm
<cfmodule template="dump-stack.cfm">
Browse to {server}/A/call-dump-stack.cfm - stack is correct (shows .../A/ as directory for both modules)
Browse to {server}/B/call-dump-stack.cfm - stack is incorrect (shows .../B/ as directory for call-dump-stack.cfm, and .../A/ as directory for dump-stack.cfm
This behavior is inconsistent with previous CF releases (tested with 9, 10, and 11) [the translated path is used for all stack entries, including the original called module]
Actual Result:
Expected Result:
Any Workarounds:
Don't use symbolic links if the actual path matters in your logic (or don't upgrade to CF2016)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4161484
External Customer Info:
External Company:
External Customer Name: Tim Parker
External Customer Email:
External Test Config: My Hardware and Environment details: Centos 7 (Linux) VM w/JDK 8 (92), 4GB memory
Attachments:
Comments: