nextcloud / nextcloud/server

Error shown when file upload receives 403 references "access control" + never includes any additional explanation text sent on by server(s)

Open
#48,164 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 31-feedback enhancement feature: files
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

When uploading a file and the proxy has a file-filter rule in place to block the upload by sending a 403. Netflix UI says: Operation is blocked by access control indicating that it's the files_accesscontrol app who blocks

Error is caused by this line: https://github.com/nextcloud/server/blob/master/apps/files/src/views/FilesList.vue#L604
the server sends response content as well but it's only checked for the 403 code.

I know it's a very niche issue so LMK if that needs fixing.

Steps to reproduce
  1. block file uploads with proxy rule
  2. upload file
  3. see error Operation blocked by access control
Expected behavior

more clear error message

Nextcloud Server version

master

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 in apps/files/src/views/FilesList.vue around line 604 and reproduce an upload blocked by a proxy returning HTTP 403. Inspect how the response body is handled; done means the UI includes the server's additional explanation instead of only reporting an access-control block.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.