Bug 1791205 - Tasks status update return 500 instead of 409
Summary: Tasks status update return 500 instead of 409
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: lab controller
Version: develop
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: 27.1
Assignee: Martin Styk
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-15 08:47 UTC by Martin Styk
Modified: 2020-01-29 08:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-15 09:35:39 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Beaker Project Gerrit 6724 0 None MERGED proxy: fix task status code for status endpoint 2020-02-13 10:46:09 UTC

Description Martin Styk 2020-01-15 08:47:59 UTC
Description of problem:
Beaker API providing a way to change task status (Running, Completed, Aborted).
However, if the task status is confirmed we lock this state from further change.
For example Aborted can not be transferred back to Completed.

Internally we are rising this error but we are not passing this into a client.
Instead of that, we are firing 500 and clients don't know how to handle it.
  

Version-Release number of selected component (if applicable):
26.6


Steps to Reproduce:
1. Run task in Beaker
2. Fire request to API to change the status to Completed (in case current status is running) 
3. Fire another request to API

Actual results:
500, Internal Server Error

Expected results:
409, <Put here cool error message>

Additional info:


Note You need to log in before you can comment on or make changes to this bug.