Error shown when file upload receives 403 references "access control" + never includes any additional explanation text sent on by server(s)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
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
- block file uploads with proxy rule
- upload file
- see error Operation blocked by access control
Expected behavior
more clear error message
Nextcloud Server version
master
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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