tracker issue : CF-3040381

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

Bug 80601:occurs in listtoarray() when using {} as a delimiter

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Gary Gilbert / Gary Gilbert (garyrgi)

Created: 11/06/2009

Components: Language, Datastructure

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,251028 / 259979

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 3

Problem:

occurs in listtoarray() when using {} as a delimiter
Method:

<cfset lMyList = "{key1:value1}{key2:value2}">
<cfset test = ListLen(lMyList, "{}")>
<cfset test2 = listToArray(lMyList, "{}")>
<cfdump var="#test#">
<cfdump var="#test2#">
Result:

 Illegal repetition {} The error occurred in D:\inetpub\wwwroot\cf8stuff\listtoarray.cfm: line 42 : <cfset delimiter="{}">3 : <cfset test = ListLen(lMyList, delimiter)>4 : <cfset test2 = listToArray(lMyList, delimiter,false,true)> 5 : 6 : <cfdump var="#test#">Resources:    * Check the ColdFusion documentation to verify that you are using the correct syntax.    * Search the Knowledge Base to find a solution to your problem.Browser   Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 (.NET CLR 3.5.30729)Remote Address   127.0.0.1Referrer   Date/Time   06-Nov-09 09:24 AMStack Traceat cflisttoarray2ecfm770661077.runPage(D:\inetpub\wwwroot\cf8stuff\listtoarray.cfm:4)java.util.regex.PatternSyntaxException: Illegal repetition{}at java.util.regex.Pattern.error(Pattern.java:1713)at java.util.regex.Pattern.closure(Pattern.java:2775)at java.util.regex.Pattern.sequence(Pattern.java:1889)at java.util.regex.Pattern.expr(Pattern.java:1752)at java.util.regex.Pattern.compile(Pattern.java:1460)at java.util.regex.Pattern.<init>(Pattern.java:1133)at java.util.regex.Pattern.compile(Pattern.java:823)at java.lang.String.split(String.java:2292)at coldfusion.runtime.ListFunc.ListToArray(ListFunc.java:835)at coldfusion.runtime.CFPage.ListToArray(CFPage.java:2042)at cflisttoarray2ecfm770661077.runPage(D:\inetpub\wwwroot\cf8stuff\listtoarray.cfm:4)at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363)at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)at coldfusion.CfmServlet.service(CfmServlet.java:200)at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)at jrun.servlet.FilterChain.service(FilterChain.java:101)at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

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

Watson Bug ID:	3040381

External Customer Info:
External Company:  
External Customer Name: Gary Gilbert
External Customer Email: 3FDC45AE445F31D7992015D5
External Test Config: 11/06/2009

Attachments:

Comments:

It's an incredibly poor / illogical example of code that only a muppet would write, but still: it shouldn't error. +1 vote. -- Adam
Vote by External U.
22564 | November 11, 2011 12:39:15 AM GMT
This bug has been voted..
Vote by External U.
22565 | November 11, 2011 12:39:17 AM GMT
This bug has been voted..
Vote by External U.
22566 | November 11, 2011 12:39:18 AM GMT