Skip to content
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

Requesting an already requested Resource results in creating a duplicated process ID in ClearingHouse #638

Open
SebastianOpriel opened this issue Jan 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SebastianOpriel
Copy link
Member

SebastianOpriel commented Jan 18, 2023

Bug Report

Describe the bug

In case a connection is established with a provider and Clearing House was enabled, a process creation message was already sent to the Clearing House. Thus, a valid connection, which was logged with the agreement ID of consumer/provider, exists.

In case the same resource is requested, it seems, that no new agreement is created, but the existing one is used. Nevertheless from the logs it seems, that it is tried to create a new process ID in Clearing House for the existing agreement ID, which ultimately results in a HTTP Status 400 from Clearing House with ids:RejectionMessage

To Reproduce

Steps to reproduce the behavior:

  1. Configure connector properly (DAPS, ClearingHouse, etc.)
  2. Request a resource and establish connection
  3. Request again the same resource and see logs

Expected behavior

No new process is created, but the existing one is used. Maybe first, a clearingHouse query shall be conducted e.g, with https://github.com/International-Data-Spaces-Association/IDS-Messaging-Services/blob/e6da46cbcbbf55bd0cfe1388396d76ae7c67fee2/clearinghouse/src/main/java/ids/messaging/clearinghouse/ClearingHouseService.java#L180

Screenshots & Logs

2023-01-18T08:33:28,044 [http-nio-8080-exec-15] INFO - Sending request message: [...] [code=(IMSMEI0068)]
2023-01-18T08:33:28,044 [http-nio-8080-exec-15] INFO - Sending request to https://clearing.test.mobility-dataspace.eu/messages/log/841cbff3-af52-4010-99c2-64a588899c7d ... [code=(IMSMEI0065)]
2023-01-18T08:33:30,113 [http-nio-8080-exec-15] INFO - Incoming response body: --97499e9b-a5f4-4ccd-9208-1bb2611ebbfa\r\nContent-Disposition: form-data; name="header"\r\nContent-Type: application/json; charset=UTF-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\n{\n  "@context" : {\n    "ids" : "https://w3id.org/idsa/core/",\n    "idsc" : "https://w3id.org/idsa/code/"\n  },\n  "@type" : "ids:RejectionMessage",\n  "@id" : "https://w3id.org/idsa/autogen/rejectionMessage/39e784d9-2e48-479b-a038-4b442905458b",\n  "ids:issuerConnector" : {\n    "@id" : "https://clearing.test.mobility-dataspace.eu"\n  },\n  "ids:senderAgent" : {\n    "@id" : "https://clearing.test.mobility-dataspace.eu"\n  },\n  "ids:securityToken" : {\n    "@type" : "ids:DynamicAttributeToken",\n    "@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/417bd91e-9765-4558-b390-2ad5c022065a",\n    "ids:tokenValue" : "eyJ0eXAiOiJhdCtqd3QiLCJraWQiOiJjNGI1ZWY4NDk4NTNiY2RlZjNjZjA1Njc5ODExNzU3NzUxODNhMGZlNmMyZDkwZjliYTkwNTM4YTlmOWEyODE0IiwiYWxnIjoiUlMyNTYifQ.eyJzY29wZSI6Imlkc2M6SURTX0NPTk5FQ1RPUl9BVFRSSUJVVEVTX0FMTCIsImF1ZCI6WyJpZHNjOklEU19DT05ORUNUT1JTX0FMTCJdLCJpc3MiOiJodHRwczovL2RhcHMudGVzdC5tb2JpbGl0eS1kYXRhc3BhY2UuZXUiLCJzdWIiOiIwNDpCODozQjpEQzpCODoxQTpFMTo5RjpBNzoxNDozODo2NzpBODoxMjpCRjo3RTpFOToxRDo2ODoyQTprZXlpZDo2RDoyQjozOTo1QTpBNzo3QTpCQTpGNDo5RDo5NTpEQTpBRjo4Qzo0Mjo5RjpDODo4QTo2ODoxODo4NyIsIm5iZiI6MTY3NDAzMDgwOSwiaWF0IjoxNjc0MDMwODA5LCJqdGkiOiJiOTQ4NGM1Yy0zMjExLTQyMzEtYTg5ZS02MjdlZDUzYTNlMjUiLCJleHAiOjE2NzQwMzQ0MDksImNsaWVudF9pZCI6IjA0OkI4OjNCOkRDOkI4OjFBOkUxOjlGOkE3OjE0OjM4OjY3OkE4OjEyOkJGOjdFOkU5OjFEOjY4OjJBOmtleWlkOjZEOjJCOjM5OjVBOkE3OjdBOkJBOkY0OjlE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j3eRX6JMVK1B9vD4XzRC76D8xZ0hH3wNOExQkwJx__9MtfMDpJgQijwmLE",\n    "ids:tokenFormat" : {\n      "@id" : "https://w3id.org/idsa/code/JWT"\n    }\n  },\n  "ids:issued" : {\n    "@value" : "2023-01-18T08:33:30.056Z",\n    "@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"\n  },\n  "ids:correlationMessage" : {\n    "@id" : "https://w3id.org/idsa/autogen/logMessage/2cc122b6-7854-4a97-9e50-bf00cbc9d159"\n  },\n  "ids:recipientConnector" : [ {\n    "@id" : "https://connector-sovity-mds-test.prod-sovity.azure.sovity.io"\n  } ],\n  "ids:recipientAgent" : [ {\n    "@id" : "https://connector-sovity-mds-test.prod-sovity.azure.sovity.io"\n  } ],\n  "ids:modelVersion" : "4.1.0"\n}\r\n--97499e9b-a5f4-4ccd-9208-1bb2611ebbfa--\r\n [code=(IMSMEI0066)]
2023-01-18T08:33:30,113 [http-nio-8080-exec-15] WARN - Received response but response-code not in 200-299. [code=(IMSMEW0046), response-code=(400)]
2023-01-18T08:33:30,118 [http-nio-8080-exec-15] INFO - Successfully passed SHACL-Validation. [code=(IMSMEI0064)]

Stakeholders to keep updated

@kragall @ip312 @dhommen @tmberthold @omarsilva1

@SebastianOpriel SebastianOpriel added the bug Something isn't working label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant