Project

Profile

Help

Issue #4883

task cancel api is incorrect

Added by jsherril@redhat.com 8 months ago. Updated about 1 month ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

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.

SkzSjeR.png (88.9 KB) jsherril@redhat.com, 05/28/2019 09:33 PM SkzSjeR.png
250

Related issues

Related to Pulp - Issue #3054: Task cancelation via REST API does not work CLOSED - CURRENTRELEASE Actions

Associated revisions

Revision baf14fe9 View on GitHub
Added by dkliban@redhat.com 8 months ago

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

History

#1 Updated by amacdona@redhat.com 8 months ago

  • Triaged changed from No to Yes
  • Tags Documentation added

#2 Updated by dkliban@redhat.com 8 months ago

  • Status changed from NEW to MODIFIED

#3 Updated by kersom 8 months ago

  • Related to Issue #3054: Task cancelation via REST API does not work added

#4 Updated by bmbouter about 1 month ago

  • Sprint/Milestone set to 3.0.0

#5 Updated by bmbouter about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF