Skip to content

MediaProxy returns 404 for valid image payloads labeled as octet-stream #498

@ntsklab

Description

@ntsklab

Summary

MediaProxy can return 404 for remote media even when upstream is reachable and the payload is a valid image.

Example URL (affected)

Observed behavior

  • Hollo proxy URL responds with 404.
  • Upstream URL responds with 200.
  • Upstream uses Content-Type: application/octet-stream (or binary/octet-stream) in some cases.
  • Payload bytes are valid image data.

Expected behavior

Valid safe image payloads should not be rejected as 404 solely because upstream labels MIME as octet-stream.

Impact

Avatars/media may appear missing in timelines for multiple remote accounts.

Environment

  • Hollo 0.9.1
  • MEDIA_PROXY=proxy
  • REMOTE_MEDIA_THUMBNAILS=off

Additional note

A similar upstream MIME pattern was observed on hosting used by Hollo official account avatar media.

AI disclosure

This issue text was drafted with AI assistance (GPT-5.3 Codex) and reviewed by a human before submission.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Priority

High

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions