-
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
Add symfony event for resolving private links by apps #30795
Conversation
Apps can now resolve private links whenever the link was not resolvable by the files app. Currently only the trashbin is responding to this in case a file is in trash.
Wow, seems that little change broke a lot of tests... |
7c70e29
to
18b20de
Compare
Codecov Report
@@ Coverage Diff @@
## master #30795 +/- ##
============================================
+ Coverage 61.97% 61.99% +0.01%
- Complexity 18358 18378 +20
============================================
Files 1157 1157
Lines 69066 69117 +51
Branches 1242 1242
============================================
+ Hits 42805 42848 +43
- Misses 25889 25897 +8
Partials 372 372
Continue to review full report at Codecov.
|
Ok so I found a way to make invokePrivate work for both static and non-static methods! |
$file = current($files); | ||
if ($file instanceof Folder) { | ||
// set the full path to enter the folder | ||
$params['dir'] = $baseFolder->getRelativePath($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.
Can throw NotFoundException? Add a general purpose try catch?
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.
Ok - never gets there ...
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. |
Description
Apps can now resolve private links whenever the link was not resolvable by the files app.
Currently only the trashbin is responding to this in case a file is in trash.
Related Issue
Will be required for #30106 to also resolve file id to pending share page URL
Motivation and Context
Will be required for #30106 to also resolve file id to pending share page URL.
Also decouples the ViewController from trashbin...
How Has This Been Tested?
Manual test by opening a private link pointing at a trashed folder: the web UI opens in the trashed folder.
Unit tests.
Screenshots (if appropriate):
Types of changes
Checklist: