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

Allow special characters in key using Batch Upload Complete API

    XMLWordPrintable

    Details

    • 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

      Description

      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:

      1. Prepare Nuxeo-side Document and batch using S3 batch handler for upload in Nuxeo instance configured at HF42 or above (referenced doc here). 
      2. In body passed to batch upload complete endpoint, include a special character in the key parameter
      3. 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}
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: