Actions
Issue #4883
closedtask cancel api is incorrect
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Quarter:
Description
the pulp3 task cancelling api in incorrect in two ways:
It says that 'name' is required, which doesn't make much sense.
The return code is 204, not 201.
I'm attaching a screenshot of the issue with docs.
Files
Related issues
Updated by amacdona@redhat.com over 5 years ago
- Triaged changed from No to Yes
- Tags Documentation added
Added by dkliban@redhat.com over 5 years ago
Updated by dkliban@redhat.com over 5 years ago
- Status changed from NEW to MODIFIED
Applied in changeset pulpcore|baf14fe9bbd8832b3e3112b0f6385fd99011d0ff.
Updated by kersom over 5 years ago
- Related to Issue #3054: Task cancelation via REST API does not work added
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Problem: task cancel API is incorrect
Solution: switch it to a PATCH method of the task
This patch changes REST API for task cancelation. Users will now be able to make a PATCH request to the task href and specify the state='canceled'. The response is the fully serialized task.
fixes: #4883 https://pulp.plan.io/issues/4883