tracker issue : CF-3042181

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

Bug 84203:(Watson Migration Closure)Summary: CFHTTP errors on CSV data with embedded line breaksSee steps to reproduce

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 09/15/2010

Components: Language, Tags

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 0

Problem:

Summary: CFHTTP errors on CSV data with embedded line breaksSee steps to reproduce.It's completely legit to have embedded line breaks in CSV data provided its quoted.  CFHTTP just errors  in this test.-- Adam
Method:

<!--- runme.cfm ---><cfhttpmethod= "get"url= "http://www.scribble.local/cf/cfml/tags/protocol/http/target.csv"name= "q"result= "st"/><cfdump var="#variables#">target.csv:id,data1,data21, "simple", "simple"2, """leading"" embedded quotes", """leading"" embedded quotes"3, "inner ""embedded"" quotes", "inner ""embedded"" quotes"4, "trailing embedded ""quotes""", "trailing embedded ""quotes"""5, "leading embedded CR","leading embedded CR"6, "innerembedded CF","innerembedded CF"7, "trailing embedded CR", "trailing embedded CR"8, "simple", "simple"
Result:

String index out of range: -1


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1937)
	at coldfusion.tagext.net.HttpTable.processLine(HttpTag.java:3207)
	at coldfusion.tagext.net.HttpTable.populate(HttpTag.java:3152)
	at coldfusion.tagext.net.HttpTable.populate(HttpTag.java:3033)
	at coldfusion.tagext.net.HttpTag.getUrlContents(HttpTag.java:2028)
	at coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:1010)
	at coldfusion.tagext.net.HttpTag.doEndTag(HttpTag.java:1147)
	at cftest2ecfm1694081808.runPage(C:\inetpub\wwwroot\work\84203\test.cfm:1)
	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:390)
	at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
	at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
	at coldfusion.filter.PathFilter.invoke(PathFilter.java:94)
	at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
	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:62)
	at coldfusion.CfmServlet.service(CfmServlet.java:200)
	at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
	at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:242)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:450)
	at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:385)
	at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:371)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:619)

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

Watson Bug ID:	3042181

External Customer Info:
External Company:  
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 09/15/2010

Attachments:

Comments: