Status/Resolution/Reason: Closed/Withdrawn/Duplicate
Reporter/Name(from Bugbase): Travis Walters / Travis Walters (Travis Walters)
Created: 03/09/2016
Components: CFIMAGE
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Beta1_v12 /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 1
Duplicate ID: CF-4102192
Problem Description:
IMPORTANT: I found this bug in ColdFusion 10 tonight and verified it is still an issue with this latest version of ColdFusion.
Spaces in image URLs cause ColdFusion to crash when using the ImageNew function.
Example That Crashes (uploaded as test.cfm):
<cfset myImage = ImageNew("http://www.pictureperfecttool.com/img/Flag - 128.png") />
Example That Works (uploaded as test2.cfm):
<cfset myImage = ImageNew("http://www.pictureperfecttool.com/img/Flag-128.png") />
Steps to Reproduce:
Actual Result:
ColdFusion Crash With java.io.IOException (coldfusion.image.ImageReader$ImageReadingException)
Stack trace attached as stackTrace.txt
Expected Result:
It should work with spaces.
Any Workarounds:
If I change the code to this it works:
<cfset myImage = ImageNew("http://www.pictureperfecttool.com/img/Flag%20-%20128.png") />
Can you make it so spaces get replaced with %20 for the input parameter?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126499
External Customer Info:
External Company:
External Customer Name: Travis Walters
External Customer Email: TWALTERS84@HOTMAIL.COM
External Test Config:
Bug File Paths:
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta1_v12\4101478\Flag - 128.png
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta1_v12\4101478\stackTrace.txt
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta1_v12\4101478\Flag-128.png
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta1_v12\4101478\test.cfm
\\sjshare.corp.adobe.com\Prereleasebugfiles\ColdFusion\12.0\Beta1_v12\4101478\test2.cfm
Attachments:
Comments: