tracker issue : CF-4126495

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

CFImage Source Parameter With Spaces Causes Crash - Similar to Bug #4101478

| 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: 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:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Closed By newValue: preethi oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Owner newValue: Blank oldValue: sanniset oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Duplicate Bug ID newValue: CF-4101478 oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Status newValue: Withdrawn oldValue: ToFix oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Reason newValue: Duplicate oldValue: NeedMoreInfo oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Date Closed newValue: 2015-12-20 23:04:27.0 oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 07:04:27.0 action: updated fieldName: Fix By Product Milestone newValue: Gold Master oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Status newValue: ToFix oldValue: Unverified oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Reason newValue: NeedMoreInfo oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Priority newValue: 2 oldValue: 0 oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Severity newValue: 2 oldValue: 4 oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Fix By Milestone newValue: Gold Master oldValue: Blank oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0 action: updated fieldName: Owner newValue: sanniset oldValue: preethi oprid: preethi recordName: RQ_DEFECT timpestamp: 2015-12-21 06:51:58.0
Comment by CFwatson U.
3964 | March 09, 2016 02:19:11 AM GMT
Added By:preethi Note Added: Hi Travis, The issue has been reproduced for other image functions as well. Please mark the bug #CF-4101478 as external, so that it can be tracked publicly. Also, closing this bug as duplicate, as we would be tracking all the issues as part of the the previous bug Thanks, Preethi Date Added :2015-12-21 07:04:31.0 Added By: PreRelease User User Name:Travis Walters Note Added: Entered Bug. Date Added :2015-12-19 15:09:16.0
Comment by CFwatson U.
3965 | March 09, 2016 02:19:12 AM GMT