-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 10.10-HF42
-
Fix Version/s: None
-
Component/s: File Upload , S3
-
Tags:
-
Backlog priority:900
-
Sprint:nxplatform next
When making POST to /api/v1/upload/{batchId}/{fileIdx}/complete to upload a document to S3, using special characters in the passed key (e.g. parentheses, forward slash, period before extension) triggers IllegalArgumentException: Invalid Key.
Steps to reproduce:
- Prepare Nuxeo-side Document and batch using S3 batch handler for upload in Nuxeo instance configured at HF42 or above (referenced doc here).
- In body passed to batch upload complete endpoint, include a special character in the key parameter
- Make POST call to endpoint
Expected result: Document is uploaded to S3 bucket successfully.
Actual result: Upload fails with following error:
java.lang.IllegalArgumentException: Invalid key: {key used for upload}