Title:
Flash/HTML format CFCHARTs will generate unexpected URLs if attribute "URL" is set to "" or " "
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Eric Tabet / Eric Tabet (etabet)
Created: 12/02/2014
Components: Charting/Graphing
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final / CF11 Update5
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 1
Problem Description:
When URL attributre is set to empty (URL="") or space (URL=" "), the chart will still generate a URL and append random "r" parameter
Steps to Reproduce:
Use following code:
<CFOUTPUT><cfchart format="flash" height="400" width="600" URL="">
<cfchartseries type="bar">
<cfchartdata item="2005" value="1000"/>
<cfchartdata item="2006" value="3000"/>
<cfchartdata item="2007" value="1000"/>
<cfchartdata item="2008" value="4000"/>
<cfchartdata item="2009" value="2000"/>
</cfchartseries>
</cfchart></CFOUTPUT>
Different behaviour witth URL=" " (space)
Actual Result:
Despite the empty URL attribute, the bars are clickable and link to a URL like /3000?r=0.5323022911325097 (3000 is the value and r seems random)
If URL is set to " " (space), the bars are also clicable and link to /Page.cfm?r=0.5323022911325097 (no value, but current script name)
Expected Result:
There should be no URL if the attribute is set to empty.
Any Workarounds:
No workaround. URL="#SomeVariable#" will trigger a click behaviour even if #SomeVariable# is empty
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3860808
External Customer Info:
External Company:
External Customer Name: etabet
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 2012 x64
Attachments:
Comments: