tracker issue : CF-3327190

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

IsImageFile not working on cf9 like it did on cf8

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): dmitry mardukhayev / dmitry mardukhayev (Dmitry M)

Created: 09/07/2012

Components: CFIMAGE

Versions: 9.0

Failure Type:

Found In Build/Fixed In Build: 9.0 /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server

Vote Count: 0

Problem Description:A lot of images from my company database have non-conventional names such as "st. john's.jpg". In cf8, I used URLEncodedFormat(myimage) inside IsImageFile to check such images(see my code below). It worked perfectly until I moved to cf9. It seems like cf9 doesn't recognize URLEncodedFormat files inside IsImageFile. Please advise how I can make cf9 check images with both conventional and non-conventional names.

Steps to Reproduce:
<cfif IsImageFile("http://www.mywebsite.com/images/#URLEncodedFormat(myimage)#")>
  <cfset imageURL = "/images/#URLEncodedFormat(myimage)#">
<cfelse> 
  <cfset imageURL = "/images/noimage.jpg">
</cfif>

Actual Result: cfif conditional statement returns false setting imageURL variable to "/images/noimage.jpg"

Expected Result: cfif conditional statement should return true

Any Workarounds:

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

Watson Bug ID:	3327190

External Customer Info:
External Company:  
External Customer Name: Dmitry M
External Customer Email:  
External Test Config: My Hardware and Environment details: Coldfusion cf9 Running on IIS server and Microsolf ASP.Net web framework

Attachments:

Comments:

This is fixed in CF10 and CF11 (Comment added from ex-user id:nawani)
Comment by Adobe D.
18148 | December 23, 2013 04:21:30 AM GMT