nextcloud / nextcloud/server

Throw HTTP 501 instead of 404 when request not supported

Open
#58,795 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Is your feature request related to a problem? Please describe.

I noticed Android client requesting PDF preview which was not supported, leading to 404 error in web server log. This caused fail2ban to block the client. Wouldn't throwing a 501 Not Implemented be more sensible?

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

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

The issue names no file, test, or entry point. First trace how unsupported Android PDF preview requests are handled and identify the existing HTTP response test coverage; done means unsupported requests return HTTP 501 rather than 404 without changing supported previews.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.