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

fix: resolve failure in uploading files to a presigned AWS S3 upload url #1645

Merged
merged 26 commits into from
Aug 10, 2022

Conversation

lucian-torje-siemens
Copy link
Contributor

What this PR changes/adds

It adds a new switch for http dataplane sink which can be used to choose between chunked (streamed) transfer and non chunked transfer (supported by AWS S3 presigned upload url).

Why it does that

AWS S3 upload on presigned url does not work when header Transfer-Encoding is present (added automatically by OkHttp).
see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding

Note: HTTP/2 doesn't support HTTP 1.1's chunked transfer encoding mechanism, as it provides its own, more efficient, mechanisms for data streaming.

Further notes

Http request parameter changed

Linked Issue(s)

Closes #1643

Checklist

  • added appropriate tests?
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • added relevant details to the changelog? (skip with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

@github-actions github-actions bot added this to In progress in Connector Jul 11, 2022
@lucian-torje-siemens lucian-torje-siemens marked this pull request as ready for review July 11, 2022 11:53
CHANGELOG.md Outdated Show resolved Hide resolved
Connector automation moved this from In progress to Review in progress Jul 11, 2022
@jimmarino
Copy link
Contributor

@lucian-torje-siemens can you fix the conflicts and we'll merge?

@jimmarino
Copy link
Contributor

@lucian-torje-siemens, if you can resolve the conflicts by COB today, we can include this in the release. Otherwise, we'll put it in the next one.

@juliapampus juliapampus changed the title bug: sending data to an AWS S3 presigned upload url does not work #1643 fix: resolve failure in uploading files to a presigned AWS S3 upload url Jul 29, 2022
@juliapampus juliapampus added the bug Something isn't working label Jul 29, 2022
@juliapampus
Copy link
Contributor

@lucian-torje-siemens Can you pls take a look why the pipeline is failing?

@lucian-torje-siemens
Copy link
Contributor Author

@juliapampus @jimmarino I'm back and checking what caused the issue - first finding: faker library change in main

@kbData
Copy link

kbData commented Aug 9, 2022

Is there any update, colleagues? we are looking forward to finilizing this pull request..

@ndr-brt ndr-brt merged commit e323243 into eclipse-edc:main Aug 10, 2022
Connector automation moved this from Review in progress to Done Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Connector
  
Done
Development

Successfully merging this pull request may close these issues.

Sending data to an AWS S3 presigned upload url does not work
7 participants