Title:
CFImage Source Parameter With Spaces Causes Crash - Similar to Bug #4101478
| View in TrackerStatus/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: Normal / Unknown
Locale/System: English / Win All
Vote Count: 0
Duplicate ID: CF-4101478
Problem Description:
Related to Bug ID #4101478.
It appears that anywhere the source parameter has a space in the file name URL it will cause a crash. Both cfimage calls will crash below.
<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.
Does the cfimage tag call ImageNew? if so, fixing Bug ID #4101478 will probably fix this issue as well. I would suspect other image tags might have the same issue?
SPECIAL NOTE: This also crashes ColdFusion 10 and probably CF11 as well. I have not filed this under the public tracker. If you would like me to do so without mentioning the prerelease, please let me know if that is needed - thanks!
Steps to Reproduce:
See above.
Actual Result:
Crash.
Expected Result:
For it to work with spaces.
Any Workarounds:
Can you make it so spaces get replaced with %20 for the input source parameter?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126495
External Customer Info:
External Company:
External Customer Name: Travis Walters
External Customer Email: TWALTERS84@HOTMAIL.COM
External Test Config:
Attachments:
Comments: