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

Allow to POST the same chunk twice when uploading a file by chunks

    Details

      Description

      Currently trying to POST a chunk with the same index as an already uploaded chunk for a given batch file throws a NuxeoException with the following message: "Cannot add chunk with index i to file entry XXX as it already exists."

      We should allow to overwrite the existing chunk.
      This would make the upload endpoint:

      • More resilient in case of parallel chunks upload.
      • Idempotent in this case. In fact maybe we should be using PUT instead of POST here?

      We could check if the chunk being uploaded has the same digest as the existing one and only allow the overwrite in this case.
      This would require storing the blob's digest in the TransientStore which is currently not the case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ataillefer Antoine Taillefer
                Reporter:
                ataillefer Antoine Taillefer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.