ex-aws / ex_aws_s3

165 stars 146 forks source link

upload/4 result is not parsed #75

Closed khaskelberg closed 1 year ago

khaskelberg commented 5 years ago

Environment

Elixir 1.9.1 (compiled with Erlang/OTP 21)

* ExAws version `mix deps |grep ex_aws`

Expected behavior

Response body is parsed

Proposed Solution

Right now parse_upload method parses CompleteMultipartUploadResult and is not used anywhere https://github.com/ex-aws/ex_aws_s3/blob/10c0ff5bd6af3644759ecdd7f3f15a9de35a8a4f/lib/ex_aws/s3/parsers.ex#L5

So, as I see, there is two options

  1. Delete current implementation of parse_complete_multipart_upload, because it does nothing rn. And rename parse_upload to parse_complete_multipart_upload
  2. Pass &Parsers.parse_upload/1 as parser here https://github.com/ex-aws/ex_aws_s3/blob/10c0ff5bd6af3644759ecdd7f3f15a9de35a8a4f/lib/ex_aws/s3.ex#L938

I will a PR with solution, that you consider right I, personally, prefer first solution.

Ivor commented 4 years ago

I can confirm this.

ex_aws      -> 2.1.4
ex_aws_s3 -> 2.0.2

Is there a plan to go either of the directions mentioned by @khaskelberg?

bernardd commented 1 year ago

This is now hopefully resolved by #217