Status/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Tim Parker / Tim Parker (Tim Parker)
Created: 10/01/2014
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description: Calling ReplaceList() with extra arguments results in no reported errors and unexpected results - same code run on CF9 throws expected runtime exception
Steps to Reproduce: run the following code:
<cfscript>
fubar = '<a href="fubar">link to fubar</a>';
WriteOutput(ReplaceList("(bad args to ReplaceList) #fubar#","<,>", "<,>","all")); // runtime error expected here due to extra 'all' argument
WriteOutput("<hr />");
WriteOutput(ReplaceList("(correct args to ReplaceList) #fubar#","<,>", "<,>"));
WriteOutput("<hr />something else");
baz = "<br />something else again";
WriteOutput(baz);
</cfscript>
Actual Result: code runs without error, first replaceList is a no-op, second (correctly called) replaceList behaves as documented
Expected Result: runtime error on first ReplaceList due to extra argument
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3834534
External Customer Info:
External Company:
External Customer Name: TParker
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 7 Ultimate, JDK 1.7.67 (64 bit)//
-and-
CentOS 6.5, JDK 1.7.60 (64 bit)
Attachments:
Comments: