-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement oc chunking/checksum using tus metadata #1279
Comments
add code to cs3org/reva#669 |
rename title s/chunking/checksum/ ? |
AFAICT we should be good with tus/tus-resumable-upload-protocol#93
but this resume, together with a checksum that is calculated ... during upload and sent as an HTTP trailer would cover the requirements. I don't know what is going to die when uploading 50GB in the browser ... we need to check. |
@michaelstingl could you comment on tus/tus-resumable-upload-protocol#93 and explain why the |
|
@phil-davis @individual-it I implemented checksumming for TUS uploads in reva but I don't see acceptance tests for that in core. Checksumming when using chunks is still an open task as we need throw away any aborted PATCH request (see tus/tus-resumable-upload-protocol#143 (comment)). |
@michaelstingl IIRC you wanted to be able to let the admin configure the chunksize to make uploads pass firewalls and intermediary services ... |
@butonic I don't think we have done checksums in TUS tests yet. |
Initial Checksum support in cs3org/reva#1400 |
|
@butonic see my updated comment ⬆️ |
Oh, crap. Not my day today. |
As far as OC is concerned, there already is a "files" : {
"tus_support" : {
"max_chunk_size" : …
…
}
…
}
… IMO in its current form the Checksum extension is not suitable for mobile clients, as it requires that all data of an incomplete A possible solution I can see is to take a transactional approach, where the checksum is recorded after each
This could be implemented as an extension to the existing Checksum extension. What do you think @butonic @michaelstingl ? |
To make chunked upload requests always land on the same dataprovider, the internal upload url can be used to route all requests to the data provider that is responsible for the upload. 🤔 I think this is already done ;-) @kulmann implmented the datagateway and dataprovider part for that IIRC. |
I have finished a first draft for the proposal of a Feedback welcome! I plan to submit the PR for it soon. |
After further editing for clarity and some simplifications regarding headers, I just created the PR: tus/tus-resumable-upload-protocol#172 |
Nothing to add! Great writeup that integrates well with the core resumable upload nature of TUS! |
tracking missing TUS headers in #1747 |
tracking wrong checksum for TUS in #1755 |
cs3org/reva#1400 got merged, closing this issue as open bugs are tracked in dedicated issues. |
|
I ran into checksum problems. Maybe the tus chunking extension is not what we want because it may discard whole chunks?
See clarification in tus/tus-resumable-upload-protocol#143 (comment)
require reading the file twice.
AFAICT we can send the checksum in the metadata to mimic the current checksum protocol: https://doc.owncloud.org/desktop/2.4/architecture.html#upload
The text was updated successfully, but these errors were encountered: