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: