eclipse-edc / Samples

Apache License 2.0
31 stars 56 forks source link

Missing transferType in sample transfer/streaming/streaming-01-http-to-http #334

Open klumbe opened 8 hours ago

klumbe commented 8 hours ago

Bug Report

Describe the Bug

Sample:

Action:

Error:

The transfer-process is started on both the consumer and provider end and an id for the transfer is returned:

{
  "@type": "IdResponse",
  "@id": "<uuid>",
  "createdAt": 1730894147658,
  "@context": {
    "@vocab": "https://w3id.org/edc/v0.0.1/ns/",
    "edc": "https://w3id.org/edc/v0.0.1/ns/",
    "odrl": "http://www.w3.org/ns/odrl/2/"
  }
}

Observed Behavior

Error:

[
  {
    "message": "mandatory value 'https://w3id.org/edc/v0.0.1/ns/transferType' is missing or it is blank",
    "type": "ValidationFailure",
    "path": "https://w3id.org/edc/v0.0.1/ns/transferType",
    "invalidValue": null
  }
]

Steps to Reproduce

Steps to reproduce the behavior:

Context Information

Detailed Description

Things I tried to solve it:

Possible Implementation

-

github-actions[bot] commented 8 hours ago

Thanks for your contribution :fire: We will take a look asap :rocket:

wolf4ood commented 8 hours ago

Hi @klumbe

thanks for raising this, indeed the transferType is now required.

I tried with "transferType": "HttpData-PUSH" in transfer.json and it worked

ndr-brt commented 7 hours ago

Interesting that tests are still passing. @klumbe would you like to provide a PR to fix this?

wolf4ood commented 7 hours ago

Yeah they pass but we build the request manually in code

https://github.com/eclipse-edc/Samples/blob/main/system-tests/src/test/java/org/eclipse/edc/samples/transfer/streaming/Streaming01httpToHttpTest.java#L106

We probably just have to update the transfer.json file

ndr-brt commented 6 hours ago

Yeah they pass but we build the request manually in code

https://github.com/eclipse-edc/Samples/blob/main/system-tests/src/test/java/org/eclipse/edc/samples/transfer/streaming/Streaming01httpToHttpTest.java#L106

We probably just have to update the transfer.json file

definitely my fault :smiling_face_with_tear: test should use the transfer.json file as well

klumbe commented 5 hours ago

Hi @klumbe

thanks for raising this, indeed the transferType is now required.

I tried with "transferType": "HttpData-PUSH" in transfer.json and it worked

Hi @wolf4ood, indeed, had a typo (case) in the ServiceExtension declaration, which caused the successive issues.

Interesting that tests are still passing. @klumbe would you like to provide a PR to fix this?

Hi @ndr-brt, I did. Is my first one, so let me know if there are issues with it. Also provided a fix for the other open issue in the same rush.