-
Notifications
You must be signed in to change notification settings - Fork 83
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
Infinit progress bar loop in contract negotiation due to interrupted process #217
Comments
@ndr-brt Thanks for the prompt review and merge. I was wondering if this is bug was not hidding another bigger one. I understood the contract negotiation as a normal handshake between distributed systems. In that sense, I would expect the event I don't know well enough the archicteture, to judge if this is wrong or not. Is there another channel were I can bring this discussion up? |
TERMINATED is a final state that only happens in cases of a canceled negotiation. |
Great, thanks for sharing this link. If I understood the specification correctly, then the consumer should also get the |
Bug Report
Describe the Bug
Infinit progress bar loop in contract negotiation. That is happening because the contract verification is abruptly terminated, due to policy inequality.
Expected Behavior
Once clicking in
Negotiate
, few seconds later the contract is agreed and it apears inContracts
.Observed Behavior
When clicking in
Negotiate
, the loading bar never stops and every few seconds a request is triggered, but the process never finishes, so no contract is created.Steps to Reproduce
Steps to reproduce the behavior:
eclipse-edc/MinimumViableDataspace
andeclipse-edc/DataDashboard
.docker compose -f system-tests/docker-compose.yml up -d --build
.Company 1
in the browser: http://localhost:7080/Negotiate
fortest-document-2_company3
.Network
in developer console.Context Information
eclipse-edc/MinimumViableDataspace
at main brancheclipse-edc/DataDashboard
at main branchDetailed Description
Video screenshot:
https://github.com/eclipse-edc/DataDashboard/assets/4491850/d40f4979-7bc2-4c96-aaaa-4e2d8e833609
Logs:
Possible Implementation
This is happening because the contract offer'spolicy is different from the asset policy, at line
org.eclipse.edc.connector.contract.validation.ContractValidationServiceImpl.117
andorg.eclipse.edc.connector.contract.policy.PolicyEquality.35
, see the logs above.The offer that comes from
/federatedcatalog
contains the correct policy, but some of the ODRL properties are mistyped, thus the parsing fromdcat:Dataset
intoContractOffer
is broken and the process fails, seesrc/modules/edc-demo/services/catalog-browser.service.ts.60
.The text was updated successfully, but these errors were encountered: