You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openDAL 0.46 use range requests to increase performance, and it works well at standard webdav implementation. but for some non-standard impl server like 坚果云, it return unexpected result.
given the case of 5MiB file, we send a range request of 0-4MiB,
standard impl return 4MiB content with 206 http code (expected)
坚果云 impl return 4MiB content with 206 http code(expected)
given the case of 5MiB file, we send a range request of 4-8MiB,
standard impl return last 1MiB content with 206 http code (expected)
坚果云 impl return empty content with 416 http code(unexpected)
given the case of 2MiB file, we send a range request of 0-4MiB,
standard impl return 2MiB content with 206 http code (expected)
坚果云 impl return empty content with 416 http code(unexpected)
When the 416 Range Not Satisfiable error message is received, it implies the client has requested partial content, using the Content-Range header. For ranges of bytes, if the first byte of the specified range was greater than the length of the sequence, then this error message will be returned.
openDAL 0.46 use range requests to increase performance, and it works well at standard webdav implementation. but for some non-standard impl server like 坚果云, it return unexpected result.
there are two related http code in this case: 206 Partial Content and 416 Range Not Satisfiable
given the case of 5MiB file, we send a range request of 0-4MiB,
given the case of 5MiB file, we send a range request of 4-8MiB,
given the case of 2MiB file, we send a range request of 0-4MiB,
based on the definition of 416, only the first byte of the range is greater than the length of content will raise this error.
considering the existing implementation of 坚果云, we'd better to increase our compatibility to adapt it.
P.S. it works well in openDAL 0.45.1
The text was updated successfully, but these errors were encountered: