fix: rename list bucket/object reponse class#7545
Conversation
| }, | ||
| { | ||
| "op": "remove", | ||
| "path": "/shapes/ListBucketsOutput" | ||
| }, | ||
| { | ||
| "op": "add", | ||
| "path": "/shapes/ListAllMyBucketsResult", | ||
| "value": { | ||
| "type": "structure", | ||
| "members": { | ||
| "Buckets": { | ||
| "shape": "Buckets", | ||
| "documentation": "<p>The list of buckets owned by the requester.</p>" | ||
| }, | ||
| "Owner": { | ||
| "shape": "Owner", | ||
| "documentation": "<p>The owner of the buckets listed.</p>" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "op": "replace", | ||
| "path": "/operations/ListBuckets/output/shape", | ||
| "value": "ListAllMyBucketsResult" |
There was a problem hiding this comment.
just asking (haven't checked): could this be simplified with the "move", or "replace" operation? https://jsonpatch.com/#move
There was a problem hiding this comment.
Hey @thrau, Move worked in this case. thanks for the suggestion :)
@thrau We added the S3 ASF provider to the test pipeline some time ago, in order to make sure that there are no regressions introduced along the way. You can see the run for this PR here: https://app.circleci.com/pipelines/github/localstack/localstack/12048/workflows/9d86dafc-9ad2-4547-aa14-2cfec3162855/jobs/85316 However, these tests aren't reliable in this case, because they weren't failing before this bug was fixed. |
bentsku
left a comment
There was a problem hiding this comment.
I share Alex's opinion, we should write a simple test targeting the S3 endpoint for AWS and LS and test the content of the response (could use xmltodict), maybe using pre-signed URL for managing authentication of the request (making it easier to parse the response). Then we should be good to go! Thanks for tackling this and getting to know specs patches! 😄
bentsku
left a comment
There was a problem hiding this comment.
LGTM! 🚀 thanks for adding the test!
f74a4da to
aa62903
Compare
|
Hey everyone. Has the Elixir example that I created to reproduce the issue no longer needed? Can I remove the repository? in re: https://github.com/Dowwie/localstack_s3_xml_issue |
|
Hi @Dowwie, Apologies for delayed response. You can remove the example. Thanks for your help 🚀 |
Issue
Fix
ListBucketsOutputtoListAllMyBucketsResult.ListBucketsisListBucketsOutputwhereas AWS is returningListAllMyBucketsResult.list_objectscontainsListBucketResultobject whereas we are returningListObjectsOutputCommands to Reproduce
Comparing the response from this commands will po
list_bucketlist-objectsTested Also with
https://github.com/Dowwie/localstack_s3_xml_issue