Project

Profile

Help

Issue #6465

closed

cancelling a 'complete' task returns strange result

Added by dkliban@redhat.com over 4 years ago. Updated over 4 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:
Sprint:
Sprint 72
Quarter:

Description

$ http PATCH :/pulp/api/v3/tasks/f0f054b1-3b50-4c9a-9908-90e8422ab8f8/ state=canceled
HTTP/1.1 200 OK
Allow: GET, PATCH, DELETE, HEAD, OPTIONS
Connection: Keep-Alive
Content-Length: 11
Content-Type: application/json
Date: Tue, 07 Apr 2020 20:45:39 GMT
Keep-Alive: timeout=5, max=10000
Server: gunicorn/20.0.4
Vary: Accept,Cookie
X-Frame-Options: SAMEORIGIN

{
    "name": ""
}

I expect to get the task with a state set to 'complete'.

Actions #1

Updated by fao89 over 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 70
Actions #2

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 70 to Sprint 71
Actions #3

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 71 to Sprint 72
Actions #4

Updated by mdellweg over 4 years ago

I would expect to receive an error ("409 conflict" comes to mind.) because the requested action to cancel that task will not be performed.

Actions #5

Updated by mdellweg over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mdellweg
Actions #6

Updated by pulpbot over 4 years ago

  • Status changed from ASSIGNED to POST

Added by mdellweg over 4 years ago

Revision 310bd09d | View on GitHub

Fix response when trying to cancel a completed task

fixes #6465 https://pulp.plan.io/issues/6465

Actions #7

Updated by mdellweg over 4 years ago

  • Status changed from POST to MODIFIED
Actions #8

Updated by dkliban@redhat.com over 4 years ago

  • Sprint/Milestone set to 3.4.0
Actions #9

Updated by dkliban@redhat.com over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF