Title:
Bug 83859:-(Watson Migration Closure)http wrapper component breaks CSV parsing with tab separators by trimming all attributes
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)
Created: 08/18/2010
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 1
Problem:
http wrapper component breaks CSV parsing with tab separators by trimming all attributes. You cannot specify a delimiter of chr(9) (for TAB) because the value is trimmed and then the setAttribute for delimiter fails. There's no workaround for this without writing your own wrapper.
Method:
new http(url="http://localhost/example.csv",name="result",delimiter=chr(9)).send();
Result:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0at java.lang.String.charAt(String.java:686)at coldfusion.tagext.net.HttpTag.setDelimiter(HttpTag.java:470)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at coldfusion.tagext.GenericTag._setArguments(GenericTag.java:548)at cfbase2ecfc843813699$funcINVOKETAG.runFunction(/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/CustomTags/com/adobe/coldfusion/base.cfc:323)at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2582)at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2383)at cfhttp2ecfc1860943719$funcSEND.runFunction(/Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/CustomTags/com/adobe/coldfusion/http.cfc:103)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041904
External Customer Info:
External Company:
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 08/18/2010
Attachments:
Comments: