Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 'forbidden_chars' Not Enforced During File Uploads #43423

Open
4 of 8 tasks
Tracked by #3888
nc-fkl opened this issue Feb 7, 2024 · 0 comments · May be fixed by #43512
Open
4 of 8 tasks
Tracked by #3888

[Bug]: 'forbidden_chars' Not Enforced During File Uploads #43423

nc-fkl opened this issue Feb 7, 2024 · 0 comments · May be fixed by #43512
Labels
1. to develop Accepted and waiting to be taken care of 28-feedback bug feature: files hotspot: filename handling Filenames - invalid, portable, blacklisting, etc.

Comments

@nc-fkl
Copy link
Contributor

nc-fkl commented Feb 7, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

The parameter 'forbidden_chars,' introduced in Nextcloud 28 for setting prohibited characters, applies restrictions only when creating or renaming files and folders through the WebUI. This restriction does not extend to file uploads.

Could you please update the functionality to ensure that this parameter is also applied during file uploads?

The restriction does not apply to file uploads through the WebUI drag and drop or the "Upload files" using the +New button.

Steps to reproduce

    • New
  1. Upload files
  2. Test#.txt

Expected behavior

Thest "Test#.txt" should also be declined because of the restricted character like it is already done for folders

Installation method

None

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 28-feedback bug feature: files hotspot: filename handling Filenames - invalid, portable, blacklisting, etc.
Projects
None yet
4 participants