Reproduction steps:
- Edit xwiki.properties and set a single value in attachment.upload.allowList, e.g.:
- Start the wiki
- Upload a file
Expected result:
- There's no error in the wiki and the allow list is properly used to check the type of the uploaded file
Obtained result:
- There's an error displayed on top of the wiki
- It's not possible to upload anything as a javascript error occurs
Root cause of the stacktrace:
Note that the same happen when providing a single value in the attachment.upload.blocklist property. |