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

[Policy Bug] DPP Does not supports and operands that are not arrays #461

Open
matbmoser opened this issue Dec 3, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@matbmoser
Copy link
Contributor

The DPP does not support and logical operands with one single contraint:

            "odrl:permission": {
                "odrl:action": {
                    "@id": "odrl:use"
                },
                "odrl:constraint": {
                    "odrl:and": {
                        "odrl:leftOperand": {
                            "@id": "test"
                        },
                        "odrl:operator": {
                            "@id": "odrl:eq"
                        },
                        "odrl:rightOperand": "test"
                    }
                }
            },
            "odrl:prohibition": [],
            "odrl:obligation": []

Current Behavior

The policies configured with one constraint do not need a and.
But some people include it, so it could be just one.

Expected Behavior

Detect when a and operand has one specific policy just

Steps To Reproduce

1- Register Policy with and operand and one contraint
2- Configure in the app the and operand
3- Try to access the digital twin registry.

@matbmoser matbmoser added the bug Something isn't working label Dec 3, 2024
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: Planning
Development

No branches or pull requests

1 participant