Repository navigation
Conversation
…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)
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mzner
approved these changes
Jul 28, 2026
kavitagautam
pushed a commit
to kavitagautam/ocis-fork
that referenced
this pull request
Jul 29, 2026
…2663) (owncloud#12668) 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>. (cherry picked from commit 6950f47) Co-authored-by: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Forward port of #12663 to
master. Companions: #12666 (stable-8.1), #12667 (stable-8.2).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.
ThumbnailandPublicThumbnailpreviously logged at error level for every failure, including expected 404s for unsupported file types, and did so viag.logso the message carried no request id — both now log only in thedefault:branch, using the request-scoped logger.Also adds the missing
codesEnumentries 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>.newErrResponsepreviously did a bare map lookup, so any unmapped code produced an empty exception element.Conflict resolution: the cherry-pick needed manual resolution because
masteralready renders the sanitized messageerrInternalError("could not get thumbnail")instead oferr.Error(). That line is context directly below the insertion point, so git could not place the hunk. The sanitized message is kept unchanged; the added and removed lines are byte-identical to #12667.Adds
services/webdav/pkg/service/v0/service_test.go— the package had no test file before.🤖 Generated with Claude Code