Skip to content

[stable30] fix(dav): skip metadata handlers for non-updatable nodes - #65255

Open
backportbot[bot] wants to merge 1 commit into
stable30from
backport/65244/stable30
Open

backportbot[bot] wants to merge 1 commit into
stable30from
backport/65244/stable30

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv force-pushed the backport/65244/stable30 branch from 92bcfd1 to 7f915bd Compare October 7, 2026 08:59
// corrupt the owner's metadata. Sabre reports 403 for the properties
// that are left without a handler.
if ($node->getFileInfo()->isUpdateable()) {
$propPatch->handle(self::LASTMODIFIED_PROPERTYNAME, function ($time) use ($node) {
$node->touch($time);
return true;
});
$propPatch->handle(self::GETETAG_PROPERTYNAME, function ($etag) use ($node) {
}
return $node->setEtag($etag) !== -1;
});
$propPatch->handle(self::CREATIONDATE_PROPERTYNAME, function ($time) use ($node) {
$node->setCreationTime($dateTime->getTimestamp());
return true;
});
$propPatch->handle(self::CREATION_TIME_PROPERTYNAME, function ($time) use ($node) {
@susnux
susnux marked this pull request as ready for review November 6, 2026 00:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants