tracker issue : CF-4102192

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

CFIMAGE throws an exception when filenames/source contains space.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (S Preethi)

Created: 12/21/2015

Components: CFIMAGE

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: cf_main /

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on July 29, 2017 using build 2016.0.01.298513
Problem:
CFIMAGE throws an exception when filenames/source contains space.

Method:
<cfset myImage = ImageNew("http://www.pictureperfecttool.com/img/Flag - 128.png") />  //throws exception
<cfset myImage = ImageNew("http://www.pictureperfecttool.com/img/Flag-128.png") />  //work



Result:
Throws an exception:
java.io.IOException (coldfusion.image.ImageReader$ImageReadingException)

Expected:
It should work with spaces.

Workaround:
replace the space with %20.

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

Watson Bug ID:	4102192

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

It happens for other cfimage tag/functions as well. Example: <cfset myImageURL = "http://www.pictureperfecttool.com/img/Flag - 128.png" /> <cfset myImageDest = "C:\ColdFusion2016_2\cfusion\wwwroot\test\Flag - 128.png" /> <cfimage action="info" source="#myImageURL#" structname="myImageInfo" /> <cfimage action="resize" height="50%" source="#myImageURL#" destination="#myImageDest#" width="50%" overwrite="yes" /> Apparently spaces work in the destination URL - just not the source URL.
Comment by S P.
5005 | December 21, 2015 08:03:53 AM GMT
The fix will be available in the next updates. Thanks!
Comment by S P.
5006 | December 22, 2015 03:56:52 AM GMT
+1 ......................
Vote by External U.
5008 | January 05, 2016 04:44:59 AM GMT
Verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
5007 | July 29, 2017 06:17:56 PM GMT