Skip to content
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

#300 fix: S3Proxy is not compatible with official AWS' extended library #301

Merged
merged 8 commits into from
May 12, 2023

Conversation

bwiercinski
Copy link
Collaborator

@bwiercinski bwiercinski commented May 9, 2023

fixes #300. There are 2 formats of a pointer:

  • Legacy format
{"s3BucketName": "bucket", "s3Key": "key"}
  • Correct format
["software.amazon.payloadoffloading.PayloadS3Pointer", {"s3BucketName": "bucket", "s3Key": "key"}]
  • consumer is compatible with both legacy and correct formats
  • sender.usingS3Proxy(...) is still using the legacy format, but is the method deprecated
  • sender.usingS3ProxyCustomEncoder(...) allowing user to use the correct format
  • default codec is using new format
  • added test checking if this is actually compatible with The Amazon SQS Extended Client

@bwiercinski bwiercinski force-pushed the s3_compability_bug branch 2 times, most recently from 1744d9d to 6868d81 Compare May 9, 2023 15:02
@majk-p majk-p requested review from majk-p and matwojcik May 10, 2023 06:21
@bwiercinski bwiercinski force-pushed the s3_compability_bug branch from bc4002f to 969aa00 Compare May 11, 2023 12:38
Copy link
Collaborator

@matwojcik matwojcik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@bwiercinski bwiercinski force-pushed the s3_compability_bug branch 2 times, most recently from 8c51bb6 to 16fb8c2 Compare May 11, 2023 13:16
@bwiercinski bwiercinski force-pushed the s3_compability_bug branch from 16fb8c2 to f77bb67 Compare May 11, 2023 13:25
@bwiercinski bwiercinski force-pushed the s3_compability_bug branch from f77bb67 to cde0571 Compare May 11, 2023 14:07
@majk-p
Copy link
Contributor

majk-p commented May 12, 2023

Looks great! Please add a section to migration guide on how to adapt to the new version and we'll be good to merge

@bwiercinski bwiercinski merged commit cf0aac8 into ocadotechnology:main May 12, 2023
@bwiercinski bwiercinski deleted the s3_compability_bug branch May 12, 2023 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3Proxy is not compatible with official AWS' extended library
3 participants