nextcloud / nextcloud/files_accesscontrol

Can't upload M4V files when "*video*" mimetype is added

Open
#368 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
60
Forks
22
Avg merge
2d 11h
Merged PRs (30d)
34

Description

Steps to reproduce

1.configure file access control flow in administrator page, and add operation block access if " file MIMETYPE does not match '*video*'"
image
2.upload demo.m4v file
image

Expected behaviour

The upload should success

Actual behaviour

The upload failed with 403 "Access denied"

Notes:

  1. mp4 files can be uploaded and after removing the access control workflow, upload m4v file succeeded.
  2. Nextcloud and all apps are updated to latest version.

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 the administrator access-control workflow with a MIME type rule matching "video", then trace the app's MIME matching and upload access-denial handling. Done means .m4v files are accepted by the video rule while files outside the rule remain blocked.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.