6.0.0-beta1
7/12/25

[#5349] can only upload file to non-empty directory if you have delete permissions
Summary can only upload file to non-empty directory if you have delete permissions
Queue Gollem
Queue Version 1.0.3
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester cam.proctor (at) its (dot) state (dot) ms (dot) us
Created 05/10/2007 (6638 days ago)
Due
Updated 06/16/2008 (6235 days ago)
Assigned 07/10/2007 (6577 days ago)
Resolved 07/18/2007 (6569 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/16/2008 04:33:26 AM gentoo (dot) riverrat (at) gmail (dot) com Comment #6 Reply to this comment
Ok, I know I'm a bit outdated with version 1.0.2 but it is the latest 
stable in Gentoo.  Anyway, clicking the 'permissions' button in Gollem 
with the FTP backend totally disables all other users' access to the 
filesystem.  There is no warning and no way to back out the change.   
You have to edit the database and remove the three new table entries 
for permissions.  There should be a warning screen before execution at 
the least and a way to actually delete the tables from inside horde.
07/18/2007 06:45:08 PM Chuck Hagenbuch Comment #5
Assigned to Chuck Hagenbuch
Taken from Horde DevelopersHorde Developers
Taken from Michael Slusarz
State ⇒ Resolved
Reply to this comment
Unless I'm badly misunderstanding something, this was just a weird 
typo that disabled editing if a permissions check for deletion failed:

http://lists.horde.org/archives/cvs/Week-of-Mon-20070716/069418.html



Btw, should users be able to cut items (as opposed to copy) if they 
can't delete them?
07/17/2007 07:52:43 AM Michael Slusarz Comment #4
Assigned to Horde DevelopersHorde Developers
Reply to this comment
I can't reproduce using HEAD.  Anybody else (since I don't know 
anything about the permissions code anyway, I may not be the best 
person to have this ticket in the first place).
07/10/2007 09:41:34 PM Chuck Hagenbuch State ⇒ Feedback
 
07/05/2007 01:44:44 PM cam (dot) proctor (at) its (dot) state (dot) ms (dot) us Comment #3 Reply to this comment

[Show Quoted Text - 9 lines]
the file backend.  here is a sample of the config:



$backends['file'] = array(

     'name' => 'BS-ATT Files',

     'driver' => 'file',

     'preferred' => '',

     'hordeauth' => true,

     'params' => array(

         // The base location under which the user home directories live.

         'vfsroot' => '/opt/hordefs/BS-ATT',

         // The default permissions to set for newly created folders and files.

         // 'permissions' => $conf['umask']

     ),

     'loginparams' => array(),

     'root' => '/',

     // 'home' => Auth::getAuth(),

     // 'createhome' => false,

     // 'filter' => '^regex$',

     // 'quota' => false,

     'clipboard' => true,

     'attributes' => array('type', 'name', 'download', 'modified', 
'size', 'permission', 'owner', 'group')

);



Sorry it took so long to respond, I never saw the previous message 
until the status changed.
07/03/2007 09:49:37 PM Michael Slusarz State ⇒ No Feedback
 
06/04/2007 11:39:28 PM Michael Slusarz Comment #2 Reply to this comment
horde 3.1.4
gollem-h3-1.0.3  (no option for it in the dropdown for ticket creation)

using a user who has Show, Read, and Edit permissions:
If i create a directory and then upload a single file, I can no
longer see the file upload object once the page is refreshed, in that
directory.  Same applies to directories with files that already exist.
What backend are you using?
05/14/2007 08:59:20 AM Jan Schneider Assigned to Michael Slusarz
 
05/14/2007 08:59:09 AM Jan Schneider State ⇒ Assigned
Version ⇒ 1.0.3
 
05/10/2007 09:03:35 PM cam (dot) proctor (at) its (dot) state (dot) ms (dot) us Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ can only upload file to non-empty directory if you have delete permissions
Queue ⇒ Gollem
State ⇒ Unconfirmed
Reply to this comment
horde 3.1.4

gollem-h3-1.0.3  (no option for it in the dropdown for ticket creation)



using a user who has Show, Read, and Edit permissions:

If i create a directory and then upload a single file, I can no longer 
see the file upload object once the page is refreshed, in that 
directory.  Same applies to directories with files that already exist.



If i give the user delete permissions, he/she can then see the file 
upload object in any directory.



I have a requirement  to allow people to upload anywhere they have 
access to but never delete old files (versions).  Basically once they 
post it they have to upload another as opposed to delete and upload in 
it's place.  so they can' t lie about  it later by changing the data. :)



Did I miss something in the config?  Or is this actually a bug. It 
looked like the upload object was based on edit permissions and not 
delete from what I scanned through in the code.

Saved Queries