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

Uploading a file larger than 2Go through Batch Upload API returns a 404

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10-HF07, 8.2
    • Component/s: File Upload

      Description

      To reproduce:

      Initialize a batch:

      curl -u 'Administrator:Administrator' -X POST http://localhost:8080/nuxeo/api/v1/upload
      

      Upload a file > 2 Go:

      ataillefer@taillefer-xps:~ 0$ curl --verbose --progress-bar -u 'Administrator:Administrator' -H "X-File-Name:very_fat_files.tar.gz" -H "X-File-Type:application/x-gzip" -F file=@/home/ataillefer/nuxeo/big_files/very_fat_files.tar.gz 'http://localhost:8080/nuxeo/api/v1/upload/batchId-2a6307e0-c5e7-42ba-b04c-c3a74901a3cf/0' -o output.txt
      * About to connect() to localhost port 8080 (#0)
      *   Trying 127.0.0.1... connected
      * Server auth using Basic with user 'Administrator'
      > POST /nuxeo/api/v1/upload/batchId-2a6307e0-c5e7-42ba-b04c-c3a74901a3cf/0 HTTP/1.1
      > Authorization: Basic QWRtaW5pc3RyYXRvcjpBZG1pbmlzdHJhdG9y
      > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
      > Host: localhost:8080
      > Accept: */*
      > X-File-Name:very_fat_files.tar.gz
      > X-File-Type:application/x-gzip
      > Content-Length: 3750332964
      > Expect: 100-continue
      > Content-Type: multipart/form-data; boundary=----------------------------ae9a3ec453a1
      > 
                                                                                 0,0%< HTTP/1.1 100 Continue
                                                                                 0,0%} [data not shown]
                                                                                 0,0%< HTTP/1.1 404 Introuvable
      < Server: Apache-Coyote/1.1
      < X-UA-Compatible: IE=10; IE=11
      < Cache-Control: no-cache
      < X-Content-Type-Options: nosniff
      < Pragma: no-cache
      < X-XSS-Protection: 1; mode=block
      < Content-Length: 0
      < Date: Tue, 08 Mar 2016 11:20:37 GMT
      < Connection: close
      < 
      * we are done reading and this is set to close, stop send
                                                                                 0,0%* Closing connection #0
      

      Same behaviour via the Import button in the UI.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: