-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(dav): allow extending propfind properties via event #57914
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
base: master
Are you sure you want to change the base?
Conversation
5471dd1 to
5f63dc5
Compare
juliusknorr
left a comment
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.
Some minor comments, but the approach is fine I think 👍
|
phpunit failures do not seem related, but autoloader needs to be updated with the new class |
82179a8 to
2ec4d96
Compare
|
/backport to stable33 |
|
/backport to stable32 |
67558a9 to
9c408d5
Compare
|
|
||
| use OCP\EventDispatcher\Event; | ||
|
|
||
| /** |
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.
Add an explanation.
This event is quite specific if I understand correctly, it’s fired before sending a propfind to an external storage mounted though webdav?
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.
Thanks for the feedback @come-nc - I added the explanation for the event in a comment now.
Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com> Update lib/public/Files/Events/BeforePropfindEvent.php Co-authored-by: Julius Knorr <jus@bitgrid.net> Signed-off-by: Benjamin Früh <134610227+benjaminfrueh@users.noreply.github.com> Update lib/public/Files/Events/BeforePropfindEvent.php Co-authored-by: Julius Knorr <jus@bitgrid.net> Signed-off-by: Benjamin Früh <134610227+benjaminfrueh@users.noreply.github.com> refactor: rename BeforePropfindEvent to BeforeRemotePropfindEvent Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com> chore: update composer autoloader for new event class Signed-off-by: Benjamin Frueh <benjamin.frueh@gmail.com> Update lib/public/Files/Events/BeforeRemotePropfindEvent.php Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Benjamin Früh <134610227+benjaminfrueh@users.noreply.github.com>
66c4ccb to
9d4b115
Compare
Summary
Makes the list of WebDAV properties requested in PROPFIND calls extendable via
BeforePropfindEvent.This was implemented to enable the files_lock app to add lock properties for federation.
Changes
BeforePropfindEventinDAV::getPropfindProperties()getPropfindPropertyValue()method to access requested propertiesRequired for nextcloud/files_lock#954