-
Notifications
You must be signed in to change notification settings - Fork 866
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
NumberFormatException when parsing "Content-Length" -- should be long instead of int #963
Comments
Thank you for reporting! The fix has been merged and we will let you know after a release is out. |
That was quick, waiting for release... |
The temporary workaround is to disable S3 checksum validation via aws-sdk-java-v2/services/s3/src/main/java/software/amazon/awssdk/services/s3/S3Configuration.java Line 218 in 6846e3d
|
Did this make it into a release of the SDK yet? Seems to have been waiting a while! |
@metadaddy yes, it was released in version |
Revert "Changes document error root definition for XML based errors t…
java.lang.NumberFormatException: For input string: "51747932945"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:583)
at java.lang.Integer.valueOf(Integer.java:766)
at software.amazon.awssdk.services.s3.internal.handlers.SyncChecksumValidationInterceptor.modifyHttpResponseContent(SyncChecksumValidationInterceptor.java:84)
Possible Solution
in SyncChecksumValidationInterceptor.modifyHttpResponseContent
replace int with long
in AsyncChecksumValidationInterceptor.modifyAsyncHttpResponseContent
replace int with long
Steps to Reproduce (for bugs)
use S3Client.getObject for large files (more than 2GB)
Context
Downloading a 50+ GB File
Your Environment
The text was updated successfully, but these errors were encountered: