Title:
[ANeff] Bug for: cfspreadsheet throws ArrayIndexOutOfBoundsException if quoted CSV value does not contain comma
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 05/13/2016
Components: Document Management, Office Integration
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: CF2016_Final /
Priority/Frequency: Normal / Few users will encounter
Locale/System: English / Win XP All
Vote Count: 0
cfspreadsheet throws ArrayIndexOutOfBoundsException if quoted CSV value does not contain comma
Repro:
<cfscript>
myCSV = 'header' & chr(13) & chr(10) & '"va,lue"';
cfspreadsheet(action="write", filename=expandPath("./myXLS.xls"), name="myCSV", format="csv", overwrite=true);//works (good)
myCSV = 'header' & chr(13) & chr(10) & '"va""l,u""e"';
cfspreadsheet(action="write", filename=expandPath("./myXLS.xls"), name="myCSV", format="csv", overwrite=true);//works (good)
myCSV = 'header' & chr(13) & chr(10) & '"value"';
cfspreadsheet(action="write", filename=expandPath("./myXLS.xls"), name="myCSV", format="csv", overwrite=true);//throws java.lang.ArrayIndexOutOfBoundsException
</cfscript>
Actual result: java.lang.ArrayIndexOutOfBoundsException
Expected result: myXLS.xls created successfully
Complexity succeeds, but simplicity fails. Hmm..
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4152515
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: