-
-
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
| /** | ||
| * @since 32.0.0 | ||
| */ | ||
| class BeforePropfindEvent extends 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.
Not entirely sure about naming, BeforeRemoteProfindEvent may indicate a bit more that it is about outgoing propfind requests, not to be confused with clients requesting the webdav endpoints.
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 this good suggestion, I renamed the event to BeforeRemotePropfindEvent
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 |
38ad2b0 to
82179a8
Compare
Signed-off-by: Benjamin Frueh <[email protected]> Update lib/public/Files/Events/BeforePropfindEvent.php Co-authored-by: Julius Knorr <[email protected]> Signed-off-by: Benjamin Früh <[email protected]> Update lib/public/Files/Events/BeforePropfindEvent.php Co-authored-by: Julius Knorr <[email protected]> Signed-off-by: Benjamin Früh <[email protected]> refactor: rename BeforePropfindEvent to BeforeRemotePropfindEvent Signed-off-by: Benjamin Frueh <[email protected]> chore: update composer autoloader for new event class Signed-off-by: Benjamin Frueh <[email protected]>
82179a8 to
2ec4d96
Compare
|
/backport to stable33 |
|
/backport to stable32 |
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