cfimage permissions 403 error after writing

Description

Hi,

This code which always worked in Lucee 5.2.8.50

<cfimage action="resize"
width="1000"
height="500"
source="https://d1dnaibno2tlfl.cloudfront.net/images/2021/3/00d2226d513.jpg"
destination="test.jpg"
overwrite="true"
name="test"
>

Still writes, but it writes with permissions for Everyone to "No Access" so if you take a look at the picture on the server it gives:

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
localhost
Apache/2.4.29 (Unix) OpenSSL/1.0.2n PHP/7.0.26 mod_perl/2.0.8-dev Perl/v5.16.3

So the just created picture can not be seen if some access it through a URL (e.g. www.someurl.com/folder_to_new_picture/test.jpg

Why?

Regards,

Dick Goosen

Environment

Lucee 5.3.7, Apache mod_cfml

Activity

Show:

Pothys - MitrahSoft 25 October 2024 at 10:53

, I have tested this ticket with Lucee version 6.2.0.130-SNAPSHOT. When I write an image using <cfimage> and tried to view the image through the server, it seemed to work fine on my end. Therefore, I am going to close the ticket. If the problem arises again, we can reopen the ticket.

Pothys - MitrahSoft 1 October 2024 at 11:52
Edited

, I have investigated this ticket using Lucee versions 5.3.7.47-SNAPSHOT and 6.2.0.93-SNAPSHOT. I didn't reproduce the issue. When the read option is denied in the property security settings, the message 'Forbidden: You don't have permission' is displayed. Could you please check the property security settings?

Pothys - MitrahSoft 4 September 2024 at 10:50
Edited

, It seems to be fixed with Lucee least version 6.1. Could you please check this with the latest version of Lucee and report back here? This will help improve the status of this ticket.

Dick Goosen 17 March 2021 at 15:57

Hi,

Found a workaround. I set the rights with:

<cfset FileSetAccessMode("imagename.jpg", "755")>

Still strange that cfimage does write files with chmod 640.

Regards,

Dick Goosen 17 March 2021 at 15:16
Edited

There is no stack trace, everything works perfect, the image is created. The only thing is that when I ask for the picture in the browser by URL it gives an Apache Error 403. An ordinary viewer does not have rights to see the picture.

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 17 March 2021 at 12:23
Updated 25 October 2024 at 10:54
Resolved 25 October 2024 at 10:54