-
Notifications
You must be signed in to change notification settings - Fork 238
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
Conversation
Merge upstream
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/NonChunkedTransferRequestBody.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParams.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParams.java
Outdated
Show resolved
Hide resolved
...n/java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParamsSupplier.java
Outdated
Show resolved
Hide resolved
...n/java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParamsSupplier.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpSinkRequestParamsSupplier.java
Outdated
Show resolved
Hide resolved
.../org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpSourceRequestParamsSupplier.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/NonChunkedTransferRequestBody.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParamsSupplierTest.java
Outdated
Show resolved
Hide resolved
spi/core-spi/src/main/java/org/eclipse/dataspaceconnector/spi/types/domain/HttpDataAddress.java
Outdated
Show resolved
Hide resolved
spi/core-spi/src/main/java/org/eclipse/dataspaceconnector/spi/types/domain/HttpDataAddress.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpRequestParams.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/HttpSinkRequestParamsSupplier.java
Outdated
Show resolved
Hide resolved
.../java/org/eclipse/dataspaceconnector/dataplane/http/pipeline/ChunkedTransferRequestBody.java
Outdated
Show resolved
Hide resolved
...va/org/eclipse/dataspaceconnector/dataplane/http/pipeline/NonChunkedTransferRequestBody.java
Outdated
Show resolved
Hide resolved
@lucian-torje-siemens can you fix the conflicts and we'll merge? |
@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. |
@lucian-torje-siemens Can you pls take a look why the pipeline is failing? |
@juliapampus @jimmarino I'm back and checking what caused the issue - first finding: faker library change in main |
Is there any update, colleagues? we are looking forward to finilizing this pull request.. |
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
no-changelog
)