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

SSI DIM Wallet Stub can't create Industry Core Policy #174

Open
evegufy opened this issue Nov 25, 2024 · 5 comments
Open

SSI DIM Wallet Stub can't create Industry Core Policy #174

evegufy opened this issue Nov 25, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@evegufy
Copy link
Contributor

evegufy commented Nov 25, 2024

Current Behavior

When EDC contract offers are published with a policy like this, contract negotiation is terminated:

{
    "@context": {
        "odrl": "http://www.w3.org/ns/odrl/2/",
        "cx-policy": "https://w3id.org/catenax/policy/"
    },
    "@type": "PolicyDefinitionRequestDto",
    "@id": "traceability-core",
    "policy": {
        "@type": "odrl:Set",
        "odrl:permission": [
            {
                "odrl:action": "use",
                "odrl:constraint": {
                    "odrl:and": [
                        {
                            "odrl:leftOperand": "https://w3id.org/catenax/policy/FrameworkAgreement",
                            "odrl:operator": {
                                "@id": "odrl:eq"
                            },
                            "odrl:rightOperand": "traceability:1.0"
                        },
                        {
                            "odrl:leftOperand": "https://w3id.org/catenax/policy/UsagePurpose",
                            "odrl:operator": {
                                "@id": "odrl:eq"
                            },
                            "odrl:rightOperand": "cx.core.industrycore:1"
                        }
                    ]
                }
            }
        ]
    }
}

Expected Behavior

Contracts can be negotiated with any usage policy.

Steps To Reproduce

  1. Publish EDC asset with the previously mentioned policy (Create EDC asset, policy and contract definition)
  2. Start contract negotiation for the contract offer
@evegufy evegufy added the bug Something isn't working label Nov 25, 2024
@evegufy
Copy link
Contributor Author

evegufy commented Nov 25, 2024

@matbmoser @ds-jhartmann Once the description is ready. Please add Nitin, maybe also discuss in the Umbrella Matrix Chat.

Should not be a blocker for the community. Just use empty policies for now.

@matbmoser
Copy link
Contributor

This is related with the policy, because the access policies will be checked against the wallet, and we usually configure the same policy for access and usage.

Why is the stub not accepting things by default???

@ds-jhartmann
Copy link
Contributor

@evegufy I added more details regarding policies.
@matbmoser please add additional information in case I forgot something or got something wrong

@evegufy
Copy link
Contributor Author

evegufy commented Nov 25, 2024

@ds-jhartmann the following error you sent via mail:

SEVERE 2024-11-25T09:42:01.416944841 JerseyExtension: Unexpected exception caught java.lang.NullPointerException: Cannot invoke "Object.toString()" because "v" is null at org.eclipse.edc.iam.identitytrust.service.IdentityAndTrustService.lambda$obtainClientCredentials$0(IdentityAndTrustService.java:114)

Is it related to this issue?

@ds-jhartmann
Copy link
Contributor

@evegufy no, this is not related to the policies

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
Status: Todo
Development

No branches or pull requests

3 participants