Project

Profile

Help

Issue #4883

closed

task cancel api is incorrect

Added by jsherril@redhat.com over 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
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

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

Related issues

Related to Pulp - Issue #3054: Task cancelation via REST API does not workCLOSED - CURRENTRELEASEamacdona@redhat.comActions
Actions #1

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

Revision baf14fe9 | View on GitHub

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

Actions #2

Updated by dkliban@redhat.com over 5 years ago

  • Status changed from NEW to MODIFIED
Actions #3

Updated by kersom over 5 years ago

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

Updated by bmbouter almost 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #5

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF