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
S3RangeReader totalLength Improvment #3025
S3RangeReader totalLength Improvment #3025
Conversation
Signed-off-by: Jacob Bouffard <jbouffard@azavea.com>
Signed-off-by: Jacob Bouffard <jbouffard@azavea.com>
I'm not really sure there are any unit tests that can be created for this PR. It might be good to test this branch on a real world example. |
Signed-off-by: Jacob Bouffard <jbouffard@azavea.com>
Signed-off-by: Jacob Bouffard <jbouffard@azavea.com>
@echeipesh @pomadchin After mentioning my results yesterday, @moradology looked into it as well and found that using a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Overview
This PR changes how the
totalLength
value ofS3RangeReader
is computed. It will now use aGetObjectResponse
instead of aGetHeaderResponse
. This will allow users to read these files even if they don't have permission to access itsHEADER
.Checklist
docs/CHANGELOG.rst
updated, if necessaryCloses #2889