8000 ODRL_PROFILE_ATTRIBUTE is ignored in JsonObjectFromPolicyTransformer · Issue #4843 · eclipse-edc/Connector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ODRL_PROFILE_ATTRIBUTE is ignored in JsonObjectFromPolicyTransformer #4843

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

Open
ChMThiel opened this issue Feb 25, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ChMThiel
Copy link
ChMThiel commented Feb 25, 2025

Bug Report

Describe the Bug

During creation of json from a Policy the profile-property of the Policy is not considered and not part of the resulting JSON.
(Hint: In JsonObjectToPolicyTransformer the profile-property is considered.)

Expected Behavior

When marshaling a given Policy-Object with profile-property to JSON, the resulting JSON should contain the profile.

Observed Behavior

Resulting JSON contains NO profile

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a Policy-Object:
Policy policy = Policy.Builder.newInstance()
                .type(PolicyType.SET)
                .target("MyTarget)
                .profiles(List.of("MyPofile"))
                .build();
  1. Marshal it with JsonObjectFromPolicyTransformer (see e.g. JsonObjectFromPolicyTransformerTest)

Context Information

  • Used version 0.11.0
@github-actions github-actions bot added the triage all new issues awaiting classification label Feb 25, 2025
Copy link

Thanks for your contribution 🔥 We will take a look asap 🚀

ChMThiel added a commit to ChMThiel/edcConnector that referenced this issue Feb 25, 2025
@mspiekermann mspiekermann added bug Something isn't working and removed triage all new issues awaiting classification labels Feb 26, 2025
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
None yet
Development

No branches or pull requests

2 participants
0