| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
ServeFile previously called helper.Check(err) on the result of aws.ServeFile, which panics on any error (e.g. the object having gone missing from the bucket between metadata lookup and download). Log the error and write a plain error response instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0168YUwGEzEHTqd9CwzXE53d
forceDecryption=false made aws.ServeFile take the redirectToDownload path, which only presigns a URL without contacting S3, so it never returns an error for a missing object. Setting forceDecryption=true routes through serveDecryptedFile, which calls s3.GetObject directly and surfaces the missing-object error the test is meant to cover. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JWZJU5aSCEBB9DHBWvL4t4
| Back | FazBrowse Home | New Git URL |
Description
ServeFile called helper.Check(err) on the result of aws.ServeFile, which panics on any error — for example if the object has gone missing from the bucket between the metadata lookup and the actual download, or any other transient S3-side failure. Logs the error and writes a plain error response to the client instead of crashing the request.
Type of Change
Technical Details
How Has This Been Tested?
Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_0168YUwGEzEHTqd9CwzXE53d