-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make files-info endpoint return path and permissions of the file #385
Conversation
2eea866
to
128f8d4
Compare
@@ -229,7 +229,12 @@ private function compileFileInfo($fileId) { | |||
} else { | |||
$mimeType = $file->getMimeType(); | |||
} | |||
|
|||
$fullpath = $file->getpath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot use getInternalPath()
here like in 7fa3107 because getInternalPath()
gets the path relative to the storage, and in case of a shared resource, the request from the share receiver will get an empty internal path as they don't own the file and the storage is that of the owner.
Seems like this file https://github.com/nextcloud/server/blob/stable25/lib/public/Files/DavUtil.php is only available from nc-25 😢 , need to find some alternative for support in NC 24 and 23 |
338db5b
to
0bfefcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need more tests where we share with different permissions
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
0bfefcf
to
873837e
Compare
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
873837e
to
8b7bf96
Compare
JS Code CoverageCoverage after merging enhance-files-info-endpoint into master will be
Coverage Report
|
Related workpackages: