sovity / edc-ui

Connector UI for the sovity EDC Community Edition.
https://sovity.de/en/connect-to-data-space-en/
Apache License 2.0
33 stars 11 forks source link

No specific error message if Policy exists with same id #746

Open SebastianOpriel opened 1 month ago

SebastianOpriel commented 1 month ago

Click on Policies>Create policy>Enter policy ID>Select Type as Time-Period-Restricted>Select date range and click on Create

Again follow the same to create a duplicate policy id:

Click on Policies>Create policy>Enter policy ID>Select Type as Time-Period-Restricted>Select date range and click on Create

Actual Result: It gives error message as "Failed creating policy". The user is not able understand root cause of the error.

Expected/Recommendation: Error message should be as "ID already exists" or some descriptive message.

Similar to: https://github.com/sovity/edc-ui/issues/745