You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a policy as described in transfer-01-negotiation: create a policy on the provider fails. It does not register a policy called aPolicy.
Other requests, like registering assets or creating a contract, are working fine.
Expected Behavior
Successfully set up a policy called aPolicy
Observed Behavior
Instead when I run curl -d @transfer/transfer-01-negotiation/resources/create-policy.json -H 'content-type: application/json' http://localhost:19193/management/v2/policydefinitions -s I get an HTTP 400 Error.
run curl -d @transfer/transfer-01-negotiation/resources/create-policy.json -H 'content-type: application/json' http://localhost:19193/management/v2/policydefinitions -s
get this HTTP Error 400 page:
<title>Error 400 Bad Request</title>
HTTP ERROR 400 Bad Request
URI:
/management/v2/policydefinitions
STATUS:
400
MESSAGE:
Bad Request
SERVLET:
EDC-management
Meanwhile, the provider connector logs this error:
jakarta.ws.rs.BadRequestException: Failed to expand JsonObject: There wa a problem encountered loading a remote context [http://www.w3.org/ns/odrl.jsonld]
Context Information
OS: Windows
openjdk 17 2021-09-14
Possible Implementation
As the create-policy.json file was recently changed (see here), maybe the error lies here?
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the Bug
Creating a policy as described in
transfer-01-negotiation
: create a policy on the provider fails. It does not register a policy called aPolicy.Other requests, like registering assets or creating a contract, are working fine.
Expected Behavior
Successfully set up a policy called aPolicy
Observed Behavior
Instead when I run
curl -d @transfer/transfer-01-negotiation/resources/create-policy.json -H 'content-type: application/json' http://localhost:19193/management/v2/policydefinitions -s
I get an HTTP 400 Error.Steps to Reproduce
Steps to reproduce the behavior:
follow the steps from
transfer-00-prerequisites
create an asset, as described in 1-create-an-asset-on-the-provider-side
run
curl -d @transfer/transfer-01-negotiation/resources/create-policy.json -H 'content-type: application/json' http://localhost:19193/management/v2/policydefinitions -s
get this HTTP Error 400 page:
<title>Error 400 Bad Request</title>HTTP ERROR 400 Bad Request
Meanwhile, the provider connector logs this error:
Context Information
Possible Implementation
As the
create-policy.json
file was recently changed (see here), maybe the error lies here?The text was updated successfully, but these errors were encountered: