core icon indicating copy to clipboard operation
core copied to clipboard

Mount Local Filestorage for 'All Users' not working

Open riso opened this issue 14 years ago • 8 comments

Hi, I have recently upgraded to 4.5.1a and upon login my configured local filestorages were not working anymore.

Permissions on directories were correct (which is also backed up by the fact that on 4.0.8 all the mount points were working correctly).

I tried deleting my old mount.php and recreate it using the new web interface, same issue. I could reproduce the issue with a fresh 4.5.1a install, both using MySQL and sqlite and apache2 or nginx. The same behaviour was reproducible using git master head revision.

Turns out that setting 'All Users' when creating a share through the web interface (or by writing 'all' into mount.php) does not work. Directories for the shares are created but their content is always empty.

Once I set the specific groups or users, shares were finally populated correctly.

Please take a look into this issue because not only creating mount points is not always working correctly but there is no feedback to the admins altogether. The only thing that made me understand that it was not working correctly was that on the web interface whenever I pressed 'All Users' the field remained blank, while when setting some group or user it did not. But to date I still don't understand if this behaviour of the web interface is just obscure (but working as intended since in some way it tells the admin that the share is not working) or if this is another bug.

riso avatar Nov 11 '12 15:11 riso

@icewind1991 Can you have a look please? THX

DeepDiver1975 avatar Nov 12 '12 08:11 DeepDiver1975

ping

karlitschek avatar Nov 23 '12 10:11 karlitschek

Can someone help to test this with the latest stable45 ?

karlitschek avatar Nov 25 '12 11:11 karlitschek

When I try it on my setup, using app neither files or folders are populated in OC. Mount point is correctly created in OC.

win7, IIS 7.5 OC 4.5.3 mysql 5.5.28 php 5.3.19

----mount.php---

array ( 'all' => array ( '/$user/files/testmount' => array ( 'class' => 'OC_Filestorage_Local', 'options' => array ( 'datadir' => 'd:\testmount', ),), ), ), ); ?>

---/mount.php----

4bendo avatar Nov 29 '12 22:11 4bendo

I tried on last 4.5 (>4.5.4) and the pb is still there. When specifiing "All Users" your dir is not populated and when you go back to your selection it shows "none". Tried with one user or more users in OC (it was allways impossible to make use of "All users").

bourgeoa avatar Dec 04 '12 19:12 bourgeoa

@MTGap Can you have a look ?

karlitschek avatar Feb 09 '13 09:02 karlitschek

I can confirm this still affects oC v5.0.0RC3

riso avatar Mar 09 '13 13:03 riso

@MTGap @icewind1991

karlitschek avatar Mar 09 '13 16:03 karlitschek