tracker issue : CF-4164200

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

replaceList/replaceListNoCase delimiters causing trouble when subset of regex

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / (Alexander Kwaschny)

Created: 06/14/2016

Components: Language

Versions: 11.0

Failure Type: Incorrectly Functioning

Found In Build/Fixed In Build: CF2016_Update2 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 1

Listed in the version 2016.0.03.300466 Issues Fixed doc
Problem Description:

The delimiter attributes in the replaceList and replaceListNoCase functions cause expression exceptions or unexpected behavior when being a subset of regex special characters such as { ? ( | ) } etc.

Steps to Reproduce:


    x = "abc";
    x = replaceListNoCase(x, "a?b?c", "x", "?");


Actual Result:

Exception because the delimiter does not result in a valid expression to use with a regex function.

Expected Result:

Not having to consider regex in replaceList and replaceListNoCase as it is not named reReplaceList/reReplaceListNoCase, right?

Any Workarounds:

Escaping the delimiters that are part of the regex subset.

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

Watson Bug ID:	4164200

External Customer Info:
External Company:  
External Customer Name: Alexander Kwaschny
External Customer Email:  
External Test Config: Seems to be broken since ColdFusion 11. It does work properly in ColdFusion 10.



Original issues and regex hint:
Comment by External U.
2398 | June 14, 2016 06:16:44 AM GMT
This issue is resolved now. I have verified it on CF2016 HF3 build #299354
Comment by Nimit S.
2399 | June 29, 2016 12:33:59 AM GMT
This issue is fixed now and the fix will be available as part of ColdFusion 2016 Update 3.
Comment by Nimit S.
2400 | June 29, 2016 12:34:38 AM GMT