Title:
Bug 80408:(Watson Migration Closure)I have this: <a href="/#getSetting('defaultPage')#">Home</a>Yields / index
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Brian J Meloche / Brian J Meloche (Brian J Meloche)
Created: 10/19/2009
Components: General Server
Versions: 2016,11.0,2018
Failure Type: Unspecified
Found In Build/Fixed In Build: 251028 /
Priority/Frequency: Normal / Some users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem:
I have this: <a href="/#getSetting('defaultPage')#">Home</a>Yields / index.cfm with a space.If I change it to this: <a href="#getSetting('defaultPage')#">Home</a>I get index.cfm without a space.Also, if I use this: <a href="/#variables.settings.defaultPage#">Home</a>I get /index.cfm without a space.It seems to be the combination of the / with the function call that generates the space in front of it. I have verified that #getSetting('defaultPage')# gives me index.cfm without a space.
Method:
I can supply code which generates the example.
[vmannebo 11/11/2009] Adding a reproducible case:
1) create a folder called bugs/80408 under webroot
2) place main.cfm and _80408.cfm under /bugs/80408/
main.cfm
--------
<cfoutput><a href="#getSetting('_80408.cfm')#" target="blank">Link 1</a></cfoutput><br>
<cfoutput><a href="/#getSetting('bugs/80408/_80408.cfm')#" target="blank">Link 2</a></cfoutput>
<cffunction name="getSetting">
<cfargument name="defaultpage">
<cfreturn defaultpage>
</cffunction>
_80408.cfm
This is a test page
Result:
/ index.cfm not found.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040322
External Customer Info:
External Company:
External Customer Name: Brian J Meloche
External Customer Email: 04C7536843D1BE67992015D5
External Test Config: 10/19/2009
Attachments:
Comments: