If policies are created via the Management-API that cannot be created via the UI, the UI indicates that the policy is incorrect, even though they technically work.
Expected Behavior
Don't show errors in the UI if technically there aren't any. Or expand the UI so that all functionalities of the Management-API are supported.
Observed Behavior
Steps to Reproduce
Steps to reproduce the behavior:
Create a policy via Management-API, which cannot be created via the UI but still works technically.
Context Information
Here in the specific cases EDC EE based on EDC 0.2.1 were used.
How it works with the Management-API. The Management-API enables customers to create any policy so they just give it a try because they know the policy from other use-cases. The management API has no input-validation and allows any POST bodies, meaning they can just try it out changing the Body, there are no specifications enforced like there are with the UI.
That's where the UI fails, because user can create any Policy with the Management-API, whether it is technically correct or not, which is not the case with the UI. The UI then tries to display all policies in the tab but simply doesn't know the syntax of some of the policies.
Possible Implementation and Work Breakdown
Possible short-term solution: Hide the error message for the scenario described above given that the policy actually works.
Bug Report
Description
If policies are created via the Management-API that cannot be created via the UI, the UI indicates that the policy is incorrect, even though they technically work.
Expected Behavior
Don't show errors in the UI if technically there aren't any. Or expand the UI so that all functionalities of the Management-API are supported.
Observed Behavior
Steps to Reproduce
Steps to reproduce the behavior:
Create a policy via Management-API, which cannot be created via the UI but still works technically.
Context Information
Possible Implementation and Work Breakdown
Possible short-term solution: Hide the error message for the scenario described above given that the policy actually works.