Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.9 M2
-
None
-
Unknown
-
Description
Reproduction steps:
- go to the user profile
- upload an image from the attachment pane
- rename the attachment to te;st.png
- from the attachment selector of the user avatar, select the attachment
- from the attachment selector, check the replace te;st.png and upload a new image
Expected:
- the content of te;st.png is replaced with the new image
Actual
- An error message is displayed to the user
Failed to upload one file. The following file names are not supported: image_plugin_select_document_tree.png
1. The error is not very informative
2. the control is overly restrictive, see https://github.com/xwiki/xwiki-platform/blob/f46d47d6c5fe2bfca32a1536163942e37e1d7054/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/UploadAction.java#L267