-
Notifications
You must be signed in to change notification settings - Fork 13
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
S3EncryptionClient (not async) Unable to execute HTTP request: headersFuture is still not completed when onStream() is invoked. #186
Comments
If you see this strange error, maybe it means that you are trying to get an unecrypted object with an Encrypted Client. In my case it helps Would be better to see the more clear error message Previously (in the v1 of was SDK) it was Unable to detect encryption information for object 'key' in bucket 'bucket'. Returning object without decryption. |
Thanks for cutting the issue. The Amazon S3 Encryption Client (S3EC) always uses It appears you have found a bug, Can you confirm the object was not encrypted? If that is the case, |
@texastony Yes, it was an attempt to read unencrypted objects with the encrypted client (as I understood after couple of days of investigation),
But in the current version, we can't see this option, and we see this error happening. |
Alas, the AWS S3 Encryption Client V3 (S3EC) does not support reading plaintext objects. I will cut a PR to call this out in the Migration section of the README. We already have a test that reads plaintext objects with the S3EC. So our test is not re-producing your result, Do you mind sharing how large this file is, roughly? A colleague of mine has suggested this could be caused by the S3EC not finding metadata or an Instruction File, Open AIs:
|
See [#186](#186 (comment)) for details.
See [#186](#186 (comment)) for details. Co-authored-by: Andrew Jewell <[email protected]>
## [3.1.2](v3.1.1...v3.1.2) (2024-03-21) ### Fixes * create clients only if necessary ([#187](#187)) ([ea0c0c7](ea0c0c7)) * do not signal onComplete when the incoming buffer length is less than the cipher block ([#209](#209)) ([8b1a686](8b1a686)) ### Maintenance * fix dependabot.yml ([#190](#190)) ([5ee8b08](5ee8b08)) * modify range to allow queries specifying only the start index ([#184](#184)) ([765b9c6](765b9c6)) * **README:** detail no unencrypted pass through ([#189](#189)) ([576ea66](576ea66)), closes [#186](#186) [/github.com//issues/186#issuecomment-1973016669](https://github.com/aws//github.com/aws/amazon-s3-encryption-client-java/issues/186/issues/issuecomment-1973016669)
The code where I create S3EncryptionClient and call it (3.1.1 library version)
The error I see:
The question is - why do I see something about the future if I do not use an async client?
How can I correctly get the response and use InputStream here? I can't see any wait/join function to wait
The text was updated successfully, but these errors were encountered: