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

Fix the response when performing CPS Patch operation across multiple data trees

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • Kohn Release
    • CPS-Core
    • None

      When attempting to perform Patch operation across data trees, the following response is currently returned

      {    
      "status""500 INTERNAL_SERVER_ERROR",    
      "message": "could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataException: could not execute statement",    
      "details""Check logs for details."
      } 

      This does not give much information regarding the actual issue and needs to be more specific.

       

      A/C:

      When updating more than one data node:

      • Return a 400 response code
      • Along with this a descriptive message should be returned as well

      Resolution:

      When trying to update multiple data nodes at once:

      • A 400 Bad Request Response is returned and DataValidationException is thrown.
      • Appropriate response message is also provided.

            arpitsingh Arpit Singh
            arpitsingh Arpit Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: