-
Notifications
You must be signed in to change notification settings - Fork 499
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
Incorrect conversion of RangeTo in BytesContentRange conversion #4428
Comments
I guess I missed the doc line that indicates this behavior, but it's really unexpected for Rust:
|
I'm working on changing this. |
This shoud already been fixed. |
Hey Xuanwo, that's good to hear. What commit/PR was that done in? |
Fixed during a refactor: #4381 |
Sounds good, thanks! |
Hello,
First off just wanted to say thanks for this project, makes integrating with cloud storage providers a lot easier.
Just wanted to report some unexpected behavior with range reads. Specifically, when passing a RangeTo like
..END
, it gets interpreted asobject.len()-END..object.len()
instead. I thought this test line should be equal toH
not!
based on the equivalent Rust Playground example, but the meaning is different for Range according to MDN.In range conversion, maybe an unbounded start needs to be turned into
Some(0)
? https://docs.rs/opendal/0.45.1/src/opendal/raw/http_util/bytes_range.rs.html#218The text was updated successfully, but these errors were encountered: