Skip to content

Conversation

@benjaminfrueh
Copy link
Contributor

@benjaminfrueh benjaminfrueh commented Jan 29, 2026

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

  • Dispatch BeforePropfindEvent in DAV::getPropfindProperties()
  • Add getPropfindPropertyValue() method to access requested properties

Required for nextcloud/files_lock#954

@benjaminfrueh benjaminfrueh requested a review from a team as a code owner January 29, 2026 15:50
@benjaminfrueh benjaminfrueh requested review from Altahrim and icewind1991 and removed request for a team January 29, 2026 15:50
@benjaminfrueh benjaminfrueh added the 3. to review Waiting for reviews label Jan 29, 2026
@benjaminfrueh benjaminfrueh force-pushed the feat/extendable-propfind branch from 5471dd1 to 5f63dc5 Compare January 29, 2026 16:04
Copy link
Member

@juliusknorr juliusknorr left a 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 👍

@juliusknorr
Copy link
Member

phpunit failures do not seem related, but autoloader needs to be updated with the new class

@benjaminfrueh benjaminfrueh force-pushed the feat/extendable-propfind branch 3 times, most recently from 82179a8 to 2ec4d96 Compare January 29, 2026 19:06
@AndyScherzinger
Copy link
Member

/backport to stable33

@benjaminfrueh
Copy link
Contributor Author

/backport to stable32

@benjaminfrueh benjaminfrueh force-pushed the feat/extendable-propfind branch from 2ec4d96 to 67558a9 Compare January 30, 2026 10:20
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>
@benjaminfrueh benjaminfrueh force-pushed the feat/extendable-propfind branch from 67558a9 to 9c408d5 Compare January 30, 2026 13:15
@benjaminfrueh benjaminfrueh added this to the Nextcloud 33 milestone Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants