201 Created response even when epic creation fails
Summary
When creating an epic as a child-epic of another the backend responds 201 Created
with an empty response body, even when epic creation has failed.
Steps to reproduce
- Create an epic hierarchy of 5
- Visit the epic at the bottom of the hierarchy and create a new epic (skip if #38331 (closed) is closed)
- Visit the epic now at the bottom of the hierarchy
- Select 'Create an epic' from the dropdown and click 'Create an Epic'
- Enter an epic name and click 'Create'
- Observe creations fails but
201 Created
response status code returned
Example Project
Test in gdk
What is the current bug behavior?
201 Created
returned with empty response body
What is the expected correct behavior?
A 4** status code, with relevant error in response body. 409
should be appropriate.
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
Edited by John Hope