Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Done
-
Honolulu Release
-
None
Description
Scenario:
Create the same data node twice with POST "protocol://host:port/cps/api/v1/dataspaces/dataspace-name/anchors/anchor-name/nodes" endpoint
Actual Behaviour:
An Internal Server Error occurs
{ "status": "500 INTERNAL_SERVER_ERROR", "message": "could not execute statement; SQL [n/a]; constraint [uq_fragment_xpath]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement", "details": "Check logs for details." }
See attached log file
Expected behaviour:
Http Error code 4xx with an explanation message.