Skip to content

Conversation

@salmart-dev
Copy link

@salmart-dev salmart-dev commented Oct 22, 2025

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 salmart-dev force-pushed the addBeforePropFindEvent branch from d9dfec8 to 3807e63 Compare October 23, 2025 14:51
@salmart-dev salmart-dev changed the title Add before prop find event Add beforePropertyResolution event Oct 23, 2025
@salmart-dev salmart-dev force-pushed the addBeforePropFindEvent branch 2 times, most recently from 2fa6b48 to 08c3404 Compare October 24, 2025 15:00
@salmart-dev salmart-dev marked this pull request as ready for review October 24, 2025 15:03
This allows interested plugins to filter and slice the list of items for
which properties are discovered, thus allowing the implementation of
pagination logic that actually discovers properties for a small set of
nodes at a time.

Signed-off-by: Salvatore Martire <[email protected]>
@salmart-dev salmart-dev force-pushed the addBeforePropFindEvent branch from 08c3404 to 314fded Compare October 24, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant