Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
17.4.0
-
Windows 11 Pro, Chrome 137, using an instance of XWiki 17.4.1 on PostgreSQL 17, Tomcat 11.0.8
-
Unknown
-
Description
Steps to reproduce
- Login as Admin
- Go to Administer Wiki > Content > Attachments Restriction
- Under "Allowed Mimetypes", insert some file types to be allowed (e.g. text/plain)
- Under "Blocked Mimetypes", insert some file types to be restricted (e.g. image/*)
- Save
- Have an image file with an extension changed to .txt or use the one attached to this issue
- Login as an user
- Go to a page and upload this file
- Observe the received message
Expected results
An error message is displayed informing the user that the content of the file doesn't match the allowed file Mimetypes to be uploaded.
Actual results
A generic error message is displayed:
An error occurred while uploading <filename>.