nextcloud / nextcloud/text

Failing preview generation results in 404 istead of original image

Open
#6,755 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug good first issue php
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Describe the bug
We had some traces in Sentry:

Image

Image

Since we don't catch these they will be caught on the Controller Level which then sends a 404.
We should return the raw image instead. In case of the trace here it was a png and could have been served fine.

Server details:
cloud.nextcloud.com from 30.0.1.1 to 30.0.2.2 - probably longer.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a preview-generation failure for a PNG and trace the request through the preview and controller handling described in the issue. Done means a failed preview returns the original raw image instead of a 404 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.