tracker issue : CF-4126499

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

ImageNew Crashes When Spaces in Filename URL

| View in Tracker

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:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Date Closed newValue: 2015-12-21 19:34:43.0 oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: Closed By newValue: vmannebo oldValue: Blank oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: Owner newValue: Blank oldValue: preethi oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: Status newValue: Withdrawn oldValue: ToTest oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: Reason newValue: Duplicate oldValue: Duplicate oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-12-22 03:34:43.0 action: updated fieldName: Owner newValue: preethi oldValue: sanniset oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-12-21 18:33:02.0 action: updated fieldName: Duplicate Bug ID newValue: CF-4102192 oldValue: Blank oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-12-21 18:33:02.0 action: updated fieldName: Status newValue: ToTest oldValue: ToFix oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-12-21 18:33:02.0 action: updated fieldName: Reason newValue: Duplicate oldValue: BugVerified oprid: rukumar recordName: RQ_DEFECT timpestamp: 2015-12-21 18:33:02.0 action: added fieldName: Vote Type newValue: BETA oldValue: Blank oprid: prerelease recordName: AD_DEFECT_VOTE timpestamp: 2015-12-19 06:23:51.0 action: updated fieldName: Severity newValue: 2 oldValue: 4 oprid: mjain recordName: RQ_DEFECT timpestamp: 2015-12-18 12:58:31.0 action: updated fieldName: Reason newValue: BugVerified oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-18 11:26:15.0 action: updated fieldName: Fix By Milestone newValue: Gold Master oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-18 11:26:15.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-18 11:26:15.0 action: updated fieldName: Fix By Product Milestone newValue: Gold Master oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-18 11:26:15.0 action: updated fieldName: Owner newValue: sanniset oldValue: preethi oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-18 11:26:15.0
Comment by CFwatson U.
3953 | March 09, 2016 02:19:57 AM GMT
+1 - Confirmed that imageNew() throws an exception if the URL contains a space in the image file name on CF10-Raijin w/ IIS. Also confirmed w/ Raijin on Apache.
Vote by External U.
3955 | March 09, 2016 02:19:59 AM GMT
Added By: PreRelease User User Name:Travis Walters Note Added: Entered Bug. Date Added :2015-12-18 10:23:42.0
Comment by CFwatson U.
3954 | March 09, 2016 02:20:01 AM GMT