Skip to content

fix(webdav): log unmapped thumbnail errors at error level (#12663) - #12666

Merged
2403905 merged 1 commit into
owncloud:stable-8.1from
kobergj:backport/stable-8.1/webdav-thumbnail-error-logging
Jul 28, 2026
Merged

2403905 merged 1 commit into
owncloud:stable-8.1from
kobergj:backport/stable-8.1/webdav-thumbnail-error-logging

Conversation

@kobergj

@kobergj kobergj commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Forward port of #12663 to stable-8.1.

Failures of the thumbnails service were logged at debug level only, so errors which are not a property of the requested file — such as the thumbnails service being unreachable — were invisible at production log levels. A complete preview outage produced HTTP 500 responses without a single log line explaining them.

Unmapped errors are now logged at error level, while expected per-file outcomes such as an unsupported file type or a file still being processed stay at debug level. Two of the four thumbnail handlers also logged without the request context, so their messages carried no request id.

Also adds the missing codesEnum entries for 403, 425 and 429 and falls back to a generic exception name for any remaining unmapped status code, so error responses no longer render an empty <s:exception></s:exception>.

Cherry-picked cleanly from 6950f47 — no conflicts, no changes beyond the changelog PR reference.

🤖 Generated with Claude Code

@kw-security

kw-security commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

…2663)

Failures of the thumbnails service were logged at debug level only, so
errors which are not a property of the requested file — such as the
thumbnails service being unreachable — were invisible at production log
levels. A complete preview outage produced HTTP 500 responses without a
single log line explaining them.

Unmapped errors are now logged at error level, while expected per-file
outcomes such as an unsupported file type or a file still being processed
stay at debug level. Two of the four thumbnail handlers also logged
without the request context, so their messages carried no request id.

Also add the missing codesEnum entries for 403, 425 and 429 and fall back
to a generic exception name for any remaining unmapped status code, so
error responses no longer render an empty <s:exception></s:exception>.

Co-authored-by: Claude Opus 5 <[email protected]>
(cherry picked from commit 6950f47)
@2403905
2403905 merged commit 88e6ce4 into owncloud:stable-8.1 Jul 28, 2026
59 checks passed
@kobergj
kobergj deleted the backport/stable-8.1/webdav-thumbnail-error-logging branch July 29, 2026 07:14
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.

4 participants