Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30644

Multi-valued Complex Fields with blob properties cannot be Edited when using CloudFront

    XMLWordPrintable

    Details

    • 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.
    • Backlog priority:
      750
    • Sprint:
      nxplatform #46
    • Story Points:
      3

      Description

      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:

      1. Set up an environment which uses CloudFront
      2. Create a File document
      3. Add an attachment
      4. Observe that the first attachment uploads successfully
      5. Try to add another attachment
      6. 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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: