"proxyMethod":"true"
seems broken after upgrading to v0.5.1
#3967
Labels
duplicate
This issue or pull request already exists
Bug Report
After the upgrade from v0.4.1 to v0.5.1 a exception:
java.lang.IllegalArgumentException: method GET must not have a request body
is thrown if any method other than GET is used on a non-finite asset.Describe the Bug
I am currently working on a demonstrator / proof of concept and am sharing an API via the HTTP consumer pull method. I recently upgraded from v0.4.1 to v0.5.1 and am now encountering an error when proxying HTTP verbs different to
GET
.Before the upgrade, I was able to send data to the API interface shared via the connector using PATCH, for example. Now, with v0.5.1, it looks in the logs as if the consumer connector always tries a
GET
, no matter what method I specify.For this bug report, let's assume that I share the placeholder Todo REST API from Typicode.
I started two identical connector instances in a Docker-Compose and created the data plane, the policy, the asset and the contract definition on the provider connector. I used the example project from Sampels as a guide.
When creating the asset, I added the fields
proxyMethod
,proxyBody
andproxyQueryParams
.I then negotiated a contract on the consumer side and started the transfer. The EDR is then also received in a logger component:
I can then use the data from the Receive EDR to access the shared Todo API via the Connector
Request (executed in the consumer container):
Response:
So far so good. But if I try to change a todo using a PATCH :
Request (again executed in the consumer container):
Response:
400 Bad Request (empty)
Expected Behavior
Response:
This is exactly how it worked, at least in version v0.4.1. Unfortunately, this no longer works with the v0.5.1 version and I have no idea what the problem is. Am I doing something wrong or has something changed in the interfaces with the new release?
Observed Behavior
I get the 400 Error (Bad Request). The log suggests that the connector is not sending a PATCH but a GET request to the API.
Steps to Reproduce
Build the connector unsing this build.gradle.kts
This is the content of the libs.versions.toml
Please let me know if more information is needed.
Context Information
Question
What am I doing wrong?
If this is not a bug, but the problem is the incorrect use of the EDC, please let me know.
Many thanks in advance!
The text was updated successfully, but these errors were encountered: