Project

Profile

Help

Issue #4474

closed

One shot uploader doesn't populate 'created_resource' on task

Added by daviddavis about 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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 50
Quarter:

Description

Upload an rpm with the one shot uploader and you'll notice that the task's created_resource field is not populated:

$ http --form POST http://localhost:8000/pulp/api/v3/rpm/upload/ file@./camel-0.1-1.noarch.rpm
$ http :8000/pulp/api/v3/tasks/1/
HTTP/1.1 200 OK
Allow: GET, DELETE, HEAD, OPTIONS
Content-Length: 422
Content-Type: application/json
Date: Tue, 26 Feb 2019 10:43:42 GMT
Server: WSGIServer/0.2 CPython/3.7.2
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "_created": "2019-02-26T10:43:34.818055Z",
    "_href": "/pulp/api/v3/tasks/1/",
    "created_resources": [],
    "error": null,
    "finished_at": "2019-02-26T10:43:35.144069Z",
    "job_id": "f791e73c-44b1-48a4-860a-932e95d7f8c4",
    "name": "pulp_rpm.app.upload.one_shot_upload",
    "non_fatal_errors": [],
    "parent": null,
    "progress_reports": [],
    "spawned_tasks": [],
    "started_at": "2019-02-26T10:43:35.063511Z",
    "state": "completed",
    "worker": "/pulp/api/v3/workers/3/"
}

Also available in: Atom PDF