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

DSP: odrl:action / odrl:type / action is null #3239

Closed
matgnt opened this issue Jun 27, 2023 · 1 comment
Closed

DSP: odrl:action / odrl:type / action is null #3239

matgnt opened this issue Jun 27, 2023 · 1 comment
Labels
bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification

Comments

@matgnt
Copy link

matgnt commented Jun 27, 2023

From examples I can see EDC uses policy permissions with this:

                "odrl:action": {
                    "odrl:type": "USE"
                },

In the DSP specs I could not find examples like that.
There I found examples like:

 "odrl:action": {
            "@id": "odrl:use"
          },

or simply

"action": "use"

I used the latter one to interact with EDC /negotiations/{process_id}/agreement and receive EDC error messages like:

java.lang.NullPointerException: Cannot invoke "org.eclipse.edc.policy.model.Action.getType()" because "action" is null                                                     
edc-dev-env-consumer-control-plane-1  |         at org.eclipse.edc.jsonld.transformer.from.JsonObjectFromPolicyTransformer$Visitor.visitAction(JsonObjectFromPolicyTransformer.java:225)

It seems to me, EDC would expect this in a different format that I can find in DSP examples. I hope this is not some fancy Jsonld formatting issue again ;-)

I tried to find any information about this odrl:action / odrl:type thing, but no luck.

Any thoughts?

--
Matthias Binzer

@matgnt matgnt added bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification labels Jun 27, 2023
@matgnt
Copy link
Author

matgnt commented Jun 28, 2023

Closing this issue, because it seems to work as expected also without the type. Not sure what caused this error reported above.

@matgnt matgnt closed this as completed Jun 28, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_report Suspected bugs, awaiting triage triage all new issues awaiting classification
Projects
None yet
Development

No branches or pull requests

1 participant