Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public function initialize(\Sabre\DAV\Server $server) {
});
$this->server->on('beforeMove', [$this, 'checkMove']);
$this->server->on('validateTokens', [$this, 'validateTokens'], 0);
$this->server->on('method:PROPFIND', [$this, 'checkPropFind']);
// checkPropFind has to be done before other events such as httpPropFind
// so set its priority below the default of 100
$this->server->on('method:PROPFIND', [$this, 'checkPropFind'], 99);
}

/**
Expand Down
9 changes: 9 additions & 0 deletions changelog/unreleased/41676
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Bugfix: reduce priority of checkPropFind event

The checkPropFind event that triggers during an HTTP PROPFIND request must
happen before the Sabre DAV httpPropFind event. That has been happening
because it sorts alphabetically first. This change reduces the priority
number of checkPropFind, increasing its priority, so that it always executes
first, regardless of any other sort order.

https://github.com/owncloud/core/pull/41676
3 changes: 2 additions & 1 deletion changelog/unreleased/PHPdependencies20260225onward
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The following have been updated:

* sabre/dav (4.7.0 to 4.7.1)

* sabre/event (5.1.7 to 5.1.8)
* sabre/event (5.1.7 to 5.1.9)

* sabre/vobject (4.5.8 to 4.6.1)

Expand Down Expand Up @@ -72,3 +72,4 @@ https://github.com/owncloud/core/pull/41666
https://github.com/owncloud/core/pull/41670
https://github.com/owncloud/core/pull/41677
https://github.com/owncloud/core/pull/41681
https://github.com/owncloud/core/pull/41676
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.