-
Notifications
You must be signed in to change notification settings - Fork 224
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
Control Plane does not asset target
value when opening Contract Negotiation
#4239
Comments
please note that the structure of the ContractOfferId (containing the assetId), is something EDC-related and used by the EDC provider to apply contract validations (see TL;DR: EDC provider in fact ignore the |
Bug Report
Describe the Bug
When consumer initiates a contract negotiation, the control plane does not check if the content of the
target
field (which should contain the asset id) is equal to the asset id defined in the asset id portion of the policy@id
.In fact, the content of this
target
field is not even used, andExpected Behavior
Control Plane should enforce that the content of the
target
field contains the same asset id as the one defined in the asset id portion of the policy@id
, and return a validation error if it's not the case.Steps to Reproduce
Initiate a contract negotiation through the control plane management API, and use a random put a random string in the
target
field of the request.The text was updated successfully, but these errors were encountered: