-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Missing OCP replacement for \OC_Util::setupFS() #17196
Comments
Thanks @oparoz I believe that @icewind1991 started some refactoring that would make it public somehow. Ideally the FS stuff should not be static. It should be possible to use the FS from multiple users in parallel by using instances of Filesystem or the Node API. There is some preliminary work from @icewind1991 here #11091 |
Looking at what's in So maybe this is a technical debt. |
Moving to 9.0. We definitely need some better API for apps to provide public mode |
I can just confirm that The view is not setup properly. Env
Steps to reproduce
Expected result
Actual result
NotesIf I replace |
Maybe this will help: #19416 |
Filesystem stuff should be transparent for apps, apps should not need to care about setting up FS and tearing down. So we need to fix those APIs and/or complete them. From what I see, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
According to the way the path to the files a token gives access to in files_sharing, we need to use this method before requesting access to a node
https://github.com/owncloud/core/blob/446f628136532fe556757c3fe39655c6304e3cb9/apps/files_sharing/lib/controllers/sharecontroller.php
Filesystem::getPath($nodeId)
can be replaced with$this->userFolder->getById($nodeId)
but can both the preceding methods be replaced by
$this->userFolder = $server->getUserFolder($userId)
?I have no idea where it should sit (OCP or AppFramework), but it's either missing or not required and new OCP methods or new documentation needs to be provided
The text was updated successfully, but these errors were encountered: