-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF54, 2021.11
-
Component/s: File Upload
-
Release Notes Summary:Blob properties using CloudFront URLs are ignored when a document is updated.
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #46
-
Story Points:3
When you have a multi-valued complex field with blob properties (such as files:files), you are not able to edit the field when using CloudFront. The data URL becomes a CloudFront URL and PUT requests fail in this case.
Steps to Reproduce:
- Set up an environment which uses CloudFront
- Create a File document
- Add an attachment
- Observe that the first attachment uploads successfully
- Try to add another attachment
- Observe that the second attachment fails with a 400 error
Looking at the PUT request, you will see that the data URL for the first attachment is a CloudFront URL. If you manually change the URL to something like"data":"http://localhost:8080/nuxeo/nxfile/default/<docid>/files:files/0/file/<filename>?changeToken=2-0"
and try the PUT request again, it will go through successfully.
Note: When testing this on environments that had CloudFront and S3 Direct Upload, the data URL was not a CloudFront URL so everything worked successfully.
- Is referenced in