Default directory permissions cause file uploading to throw an error

Bug #488028 reported by Ken McLean
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Retromod
New
High
Ken McLean
Retromod Traffic
New
Medium
Ken McLean

Bug Description

Attempting to upload a new file in Campaign Audio (or Campaign Materials for that matter) results in an error when the default file permissions (read only) exist on the data/cache directory:

 in the following:
Warning: move_uploaded_file(/home/retromod/data/media/components/traffic/4) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/retromod/private/global.php on line 568

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpAIZoZy' to '/home/retromod/data/media/components/traffic/4' in /home/retromod/private/global.php on line 568

Tags: packaging
Revision history for this message
Ken McLean (kenmclean) wrote :

This is relevant to core packaging of retromod, as well as subdirectory creation by non-core components. These inherit their permissions from the core data and cache directories, so this obviously needs to be sorted during the packaging process.

Changed in retromod:
importance: Undecided → High
assignee: nobody → Tudor Holton (tudor)
Revision history for this message
Ken McLean (kenmclean) wrote :

This is because the --x attribute for other is not part of the default directory permissions during directory creation by the upload_media() function in global.php. ie. rw-rw---x or similar is desired.

Changed in retromod-traffic:
milestone: none → sprint-4
Changed in retromod:
assignee: Tudor Holton (tudor) → Ken McLean (kenmclean)
Changed in retromod-traffic:
assignee: Tudor Holton (tudor) → Ken McLean (kenmclean)
Ken McLean (kenmclean)
Changed in retromod:
milestone: none → alpha-1
Revision history for this message
Ken McLean (kenmclean) wrote :

The directories that need changing are:

./data/
./cache/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.