Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-290

Internal Server Error when creating the same data node twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • Honolulu Release
    • CPS-Core-REST
    • None

      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.

       

       

        1. error.log
          13 kB
        2. log.txt
          38 kB

            niamhcore niamhcore
            brusak brusak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: