Per-user directories fail when UID contains '0'

eliza411 - January 25, 2007 - 17:30
Project:Disk Node
Version:HEAD
Component:Code
Category:bug report
Priority:critical
Assigned:mooffie
Status:closed
Description

I have created a folder called disknode inside my files folder. It is owned by and in the group of the same user as the Apache user and is set to 777 for now. Our author and editor groups have been given permission to use disknode in all ways except escaping the user directory.

As most users, I try uploading, and it works.

I have a single user, the one who uploads the most info on the site, for whom it will not work. Instead it says:

* The selected file /tmp/tmp_V0XcjT could not be uploaded, because the destination is not properly configured.
* Failed to save disknode/1/0/10/file.pdf
* disknode/1/0/10 is not writeble. The directory will be created when needed.

I tried some other things, and found that users 10, 20, and 30 have this problem, but users 11, 21, 31 and others not ending in 0 do not.

Any help you can provide tracking this down would be greatly appreciated.

#1

eliza411 - January 30, 2007 - 21:23

I decided to rewrite the way that fieldnode names the directories so that it's just uid, which bypasses the issue for now.

#2

mooffie - November 9, 2007 - 13:51
Title:Permissions problem» Per-user directories fail when UID contains '0'
Version:4.7.x-1.x-dev» HEAD
Category:support request» bug report
Priority:normal» critical
Assigned to:Anonymous» mooffie
Status:active» fixed

That was one embarrassing bug. Every user that sinned by having a '0' in his UID, or having a UID between 1 to 10, got busted. That's fixed now.

(Offshoot bugs: http://drupal.org/node/190769 http://drupal.org/node/190767 )

#3

Anonymous - November 23, 2007 - 13:53
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.