action-update API on non existing action - creates action instead of returning 404
Bug #1568541 reported by
Moshe Elisha
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Dougal Matthews |
Bug Description
"action-update" API (i.e., HTTP PUT "/actions") does "action-create" logic in case an action by that name does not exist.
I would expect a 404 Not Found.
"workflow-update" behaves as expected.
Changed in mistral: | |
assignee: | nobody → Renat Akhmerov (rakhmerov) |
milestone: | none → newton-1 |
importance: | Undecided → Medium |
Changed in mistral: | |
milestone: | newton-1 → newton-2 |
Changed in mistral: | |
assignee: | Renat Akhmerov (rakhmerov) → Dougal Matthews (d0ugal) |
To post a comment you must log in.
From what I understand, this happens because of the logic in mistral/ services/ actions. py
update_action calls _append_all_actions which calls create_ or_update_ action. This logic needs to be split up so that update wont ever create.