-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Part-completed v2 chunked upload #32567
Comments
If the client gives up after getting the 403 on one of the chunks, and does not actively go back and remove the chunks uploaded so far then those chunks get left "hanging around" on the server. If the client carries on regardless, it ends up with a truncated file. I guess if the client provides a checksum then the final move is going to fail. So that might clean out the pending chunks? |
|
Yes, and whatever happens there is also anyway the problem if the client just "goes away" after uploading a few chunks. For that case there is no chunk that has a "403" returned. The chunks uploaded so far "just sit" on the server, and the server has no easy way to know if the client is on the train in a tunnel and about to come out, or is gone for good. So that cleanup job is needed anyway. |
So to summarize - the only Problem is, when the client doesn't send a checksum and a chunk is missed. How should ownCloud react in this scenario? cc @PVince81 @DeepDiver1975 |
Normally when you assemble your collection you send a header "OC-Total-Length" to specify the expected length. If the server finds that it doesn't match it will fail with 400 Bad request or similar. |
other than that the server has no chance to know what the expected size is and if no checksum is sent no verification can be done. in the future we could also decide to refuse to assemble if neither checksum nor total size was sent... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
The following unusual sequence works:
You get a real file that is smaller than the firewall upload size limit, and is a truncated version of the file that you were trying to upload.
This might happen when you are out of quota, or any other reason that the file is going to be "too big".
Is this OK, bad or just weird?
The text was updated successfully, but these errors were encountered: