-
Notifications
You must be signed in to change notification settings - Fork 889
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
Google Cloud Storage bucket: putObject
access broken since 2.30.0
#5987
Comments
Looks like |
Hello @uwolfer, Thank you for reporting this issue. Yes, using I notice that your code works fine when connecting to Amazon S3 but fails with Google Cloud Storage. This is expected behavior as:
You may refer to the Disclaimer section from this Announcement regarding the specific change.
Regards, |
Thanks a lot @bhoradc for the detailed feedback. I have not found the linked announcement. I would somehow have expected this in changelogs or release notes. But still, I see two things to improve:
|
Hello @uwolfer,
Thank you again for your valuable feedback, as it helps us improve our communication and documentation for future releases.
Regarding above suggestion, it's important to note that the AWS SDK for Java is primarily designed and optimized for usage with official AWS services like Amazon S3. In this particular case, the
It is challenging for AWS SDK for Java to include specific hints or documentation references for errors originating from third-party services. As I previously mentioned, the same code works fine when using the AWS SDK for Java with Amazon S3, but encounters the Regards, |
@bhoradc Thanks for your detailed feedback. I get your point. I was under the impression that In the linked announcement, there is a comment regarding some MD5 checksum validation. Do you know if that is required in order to preserve pre 2.30 behavior when using |
Hello @uwolfer, The Java SDK uses For third-party storage providers that only accepts MD5 checksums, implementing the Therefore, Hope that clarifies. Regards, |
Thanks @bhoradc for your support. While I still think it is a pity that v2.30.0 broke support with many 3rd party storage providers (and this was not announced in a way I would have noticed before opening this ticket), I also get your point that you officially only want to support AWS S3. It would be nice to have some fallback which changes to MD5 (or at least some config) without having own code to handle this. For now, I will stay pre-v2.30.0 and hope the situation improves over the time (either Google S3 implements those advanced integrity checks, or this library adds out of the box support again for 3rd parties). |
@uwolfer you are not alone apache/hadoop#7494 Hadoop has just stopped updating; at least for the next release or two. 2.29.52 addresses most of our known issues, but not all |
Describe the bug
When using the library against a Google Cloud Storage bucket, it fails uploading an object starting 2.30.0 (tested until 2.31.6),
Regression Issue
Expected Behavior
PutObject should work as it used to until 2.29.52.
Current Behavior
It throws
When stepping a bit into, I can see that
SignatureDoesNotMatch
is received.Reproduction Steps
Possible Solution
No response
Additional Information/Context
Note: I have seen the following in changelog, could be related:
AWS Java SDK version used
2.31.6
JDK version used
21.0.6
Operating System and version
archlinux (up-to-date)
The text was updated successfully, but these errors were encountered: