Project

Profile

Help

Issue #6465

cancelling a 'complete' task returns strange result

Added by dkliban@redhat.com 6 months ago. Updated 4 months 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'.

Associated revisions

Revision 310bd09d View on GitHub
Added by mdellweg 5 months ago

Fix response when trying to cancel a completed task

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

History

#1 Updated by fao89 6 months ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 70

#2 Updated by rchan 5 months ago

  • Sprint changed from Sprint 70 to Sprint 71

#3 Updated by rchan 5 months ago

  • Sprint changed from Sprint 71 to Sprint 72

#4 Updated by mdellweg 5 months 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.

#5 Updated by mdellweg 5 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mdellweg

#6 Updated by pulpbot 5 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by mdellweg 5 months ago

  • Status changed from POST to MODIFIED

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

  • Sprint/Milestone set to 3.4.0

#9 Updated by dkliban@redhat.com 4 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF