dav icon indicating copy to clipboard operation
dav copied to clipboard

Add `beforePropertyResolution` event

Open salmart-dev opened this issue 2 months ago • 0 comments

Description

This PR introduces a new beforePropertyResolution event, to allow Plugins to slice and filter the paths for which properties are loaded during an HTTP PROPFIND request, in a similar manner as done for the beforeMultiStatus event.

Use-case

This allows the implementation of a more efficient pagination, than what is currently possible by the use of beforeMultiStatus. The current mechanism scans the whole tree under a path (according to the depth parameter) and loads properties for the nodes found, resulting in a slow initial request and requiring storing the rendered XML into a cache.

It should be possible to "discover" the nodes for a PROPFIND request, store the list for paging, slice the list of propfinds and have Sabre return the properties for those nodes only.

salmart-dev avatar Oct 22 '25 18:10 salmart-dev