tracker issue : CF-4201982

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

Permissions change when using newImage, imageScaleToFit, and imageWrite

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Mitchell Rush / ()

Created: 04/13/2018

Components: Language, Functions

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2016,0,05,303689 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description:
When making a smaller scale version of an original image, the resulting file does not maintain the permissions attached to the original image.  The new permissions also do not match the folder permissions.  This causes an error when the webpage attempts to display the smaller image.

Steps to Reproduce:
Attached is the file and code I sent to support to duplicate the issue (they were able to duplicate). But the problem resides somewhere in the following steps:

<cfset img = imageRead(origImage)>
<cfset newImage = duplicate(img)>
<cfset imageScaleToFit(newImage, 120, 160, "lanczos")>
<cfset imageWrite(newImage,thumbImage,1)>

Actual Result:
See description above

Expected Result:
The permissions on the resulting file should match those of the original file (preferred) or the default permissions of the folder.

Any Workarounds:
We have to run the windows process many times daily to set the permissions of all files in the folder to match the folder's permissions.  This is a manual process

Attachments:

Comments:

Hi Adobe and Mitchell, Possible duplicate of CF-4175138. Please see my 02/02/2017 06:08:46 GMT comment for repro steps. Thanks!, -Aaron
Comment by Aaron N.
27479 | April 17, 2018 05:05:39 AM GMT
Hi Aaron, It indeed is a duplicate of the bug #4175138. We are tracking that bug, will update you on the progress around the same. Thanks!
Comment by S P.
27480 | April 18, 2018 01:39:27 PM GMT