Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-12857

Confusing error message when updating group id via rest api

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • 7.14.0
    • None
    • None

    Description

      I am not sure this is relevant, but when trying out the openApi docs I stumbled upon this. 

      Scenario:

      I try to change the id of a group called sales via the rest api and try to change the id to salesteam

      curl -X PUT "http://localhost:8080/engine-rest/group/sales" -H  "accept: */*" -H  "Content-Type: application/json" -d "{\"id\":\"salesteam\",\"name\":\"Sales2\",\"type\":\"Organizational Unit\"}"
      

      Expected:

      It fails and tells me it is not possible to update the id (if that is indeed the intended behavior)

      Observed:

      I get a 500 response with: 

      {
        "type": "OptimisticLockingException",
        "message": "ENGINE-03005 Execution of 'UPDATE GroupEntity[salesteam]' failed. Entity was updated by another transaction concurrently."
      }
      

      Hints:

      This might be the case for other PUT endpoints, too.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              anton.weltzien Anton von Weltzien
              anton.weltzien Anton von Weltzien
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce