Skip to content

fix(files): return empty etag hash for missing file in Local::getETag - #66102

Open
lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-65072-local-getetag-missing-file
Open

lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-65072-local-getetag-missing-file

Conversation

@lazerg

@lazerg lazerg commented Oct 31, 2026

Copy link
Copy Markdown

Summary

Local::getETag() passed the false that stat() returns for a missing file into calculateEtag(), which only accepts an array, so it threw a TypeError instead of returning md5(''). It now returns md5('') before calling calculateEtag().

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: lazerg <lazerg2@gmail.com>
@lazerg
lazerg requested a review from a team as a code owner October 31, 2026 08:05
@lazerg
lazerg requested review from Altahrim, icewind1991, provokateurin and salmart-dev and removed request for a team October 31, 2026 08:05

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

Labels

None yet

1 participant