We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HTTP requests are not being correctly proxied over data plane api. HTTP method is defaulting to GET, even though proxyMethod is enabled
Method should be proxied as per asset configuration.
Steps to reproduce the behavior:
assetApi.createAsset(createObjectBuilder() .add(CONTEXT, createObjectBuilder().add(VOCAB, EDC_NAMESPACE)) .add(TYPE, EDC_ASSET_TYPE) .add(ID, assetId) .add(EDC_ASSET_PROPERTIES, createObjectBuilder() .add(PROPERTY_NAME, "Asset for service %s".formatted(assetId)) .add(PROPERTY_CONTENT_TYPE, MediaType.APPLICATION_JSON) .build()) .add(EDC_ASSET_DATA_ADDRESS, createObjectBuilder() .add("type", "HttpData") .add("proxyPath", Boolean.TRUE.toString()) .add("proxyMethod", Boolean.TRUE.toString()) .add("proxyBody", Boolean.TRUE.toString()) .add("proxyQueryParams", Boolean.TRUE.toString()) .add("baseUrl", serviceBaseUrl) //pass custom parameters .add("assetId", assetId) .build()) .build());
HttpProxy
When data is proxied destination type is set to AsyncStreaming:
AsyncStreaming
Connector/extensions/data-plane/data-plane-public-api/src/main/java/org/eclipse/edc/connector/dataplane/api/controller/DataFlowRequestSupplier.java
Line 65 in 6f35b1b
But when BaseSourceHttpParamsDecorator tries to extract HTTP method it fails as it tries to compare HttpProxy against AsyncStreaming:
Connector/extensions/data-plane/data-plane-http/src/main/java/org/eclipse/edc/connector/dataplane/http/params/decorators/BaseSourceHttpParamsDecorator.java
Line 56 in 6f35b1b
Ofcourse I might be misconfiguring the asset, but as per samples it expects HttpProxy and not AsyncStreaming.
The text was updated successfully, but these errors were encountered:
Thanks for your contribution 🔥 We will take a look asap 🚀
Sorry, something went wrong.
"proxyMethod":"true"
ndr-brt
Successfully merging a pull request may close this issue.
Bug Report
Describe the Bug
HTTP requests are not being correctly proxied over data plane api. HTTP method is defaulting to GET, even though proxyMethod is enabled
Expected Behavior
Method should be proxied as per asset configuration.
Steps to Reproduce
Steps to reproduce the behavior:
HttpProxy
Context Information
Possible cause
When data is proxied destination type is set to
AsyncStreaming
:Connector/extensions/data-plane/data-plane-public-api/src/main/java/org/eclipse/edc/connector/dataplane/api/controller/DataFlowRequestSupplier.java
Line 65 in 6f35b1b
But when BaseSourceHttpParamsDecorator tries to extract HTTP method it fails as it tries to compare
HttpProxy
againstAsyncStreaming
:Connector/extensions/data-plane/data-plane-http/src/main/java/org/eclipse/edc/connector/dataplane/http/params/decorators/BaseSourceHttpParamsDecorator.java
Line 56 in 6f35b1b
Ofcourse I might be misconfiguring the asset, but as per samples it expects HttpProxy and not AsyncStreaming.
The text was updated successfully, but these errors were encountered: