File Permissions

douggreen - March 20, 2008 - 18:21
Project:ImageAPI
Version:5.x-1.0-rc1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

When creating directories and files, the permissions need to be set so that the web server can read them. This is handled properly when creating new directories, but not when creating new files.

I think that the proper place to do this is in imageapi_image_close, rather than hook_image_close, because the file permissions issue seems more like a generic web server issue, than a specific toolkit issue. If you do it there, then it only needs to be done in one place, than but maybe you have other ideas.

Patch is attached.

AttachmentSize
chmod.patch1.45 KB

#1

douggreen - March 21, 2008 - 17:34

doh, try this one instead, it changes the perms of the destination file and NOT the source file.

AttachmentSize
236857.patch 1.44 KB

#2

dopry - March 30, 2008 - 23:32
Status:active» closed

committed to HEAD.

#3

dopry - March 30, 2008 - 23:36
Status:closed» fixed

#4

Anonymous (not verified) - April 13, 2008 - 23:41
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.