-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.0.1
-
Component/s: Server - Platform
-
None
-
Severity 3 - Minor
Issue Summary
Multipart file uploads including files with a filename which is invalid on Windows (e.g. 'file?name.txt') will be rejected by a Confluence instance hosted on Windows.
This bug impacts Struts Actions, REST APIs and any other code paths utilising the commons-fileupload2 dependency.
This includes but is not limited to the following endpoints:
- /pages/doattachfile.action?pageId={pageId}
- /rest/api/content/{pageId}/child/attachment/{attachmentId}/data
Steps to Reproduce
- Login to a Confluence instance running on Windows from a Unix computer
- Navigate to any Confluence page
- Open the Attachments panel from the page menu
- Attempt to upload a file with an illegal character, e.g. file?name.txt
Expected Results
Successful upload
Actual Results
Upload error shown
(In the case of a REST API request: 400 Bad request - Illegal char)
Workaround
Users should rename file(s) to remove characters which are illegal on a Windows filesystem and retry upload or form submission.