-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per-user webdav directories #142
Comments
Hi @AkselMeola This could be rather straightforward to have a Would you be able to try this branch #143 and tell me if everything seems to work for your use case? |
Thanks. I'll have it a go. |
So technically it works. For example on the branch the webdav public dir is a parent node of the home node: $nodes[] = new \Sabre\DAV\FS\Directory($this->webdavPublicDir); And this will allow all users to access all the users homes. It could be somewhat mitigated with a separate public directory like this: $nodes[] = new \Sabre\DAV\FS\Directory($this->webdavPublicDir . '/public');
But here also lies one bug: Any user can rename the "public" node and it will say it had an error, but on the filesystem it still actually renamed the dir. After refresh app has errors due to the missing path, so a disruption of service could be created. When I tinkered with the Sabre on my own then due to the TLDR: Thanks for looking into it tho 👍 |
Ok. Sorry. Wrong alarm.
This in itself is a small trap for admins tho and maybe a plugin or a rule could be made to not allow the rename action on public node. |
Hi @AkselMeola Not sure I get your example above. Having the |
Did some testing with this branch because this feature would be useful to me as well. I set But I can also access all users home dirs with I guess this should not be possible permission wise. |
Hi @de-es
Did you set the correct folder permissions as per @AkselMeola's message up there? |
Sorry, I don't understand how to define a different home base dir other than the public dir. |
I am talking about the permission of the folder on your device, not changing the home (which indeed would need to alter the code) |
Sorry for my ramblings.
|
I have updated #143 to differentiate the |
Sorry for the late reply. Separating |
👋🏼 Thanks @AkselMeola and @de-es for chiming and helping on this! |
@tchapi Thanks to you for implementing this feature. 👍 |
Hey!
Have been playing with the Davis and so far everything is super nice.
As far as I can currently understand the web-dav dir is shared between all users.
Are there any plans to implement/support a per-user directories for web-dav?
(https://sabre.io/dav/per-user-directories/)
Thanks!
The text was updated successfully, but these errors were encountered: