Actions
Issue #4474
closedOne shot uploader doesn't populate 'created_resource' on task
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/"
}
Updated by ipanova@redhat.com about 5 years ago
- Status changed from NEW to ASSIGNED
- Sprint set to Sprint 49
Added by ppicka about 5 years ago
Updated by ppicka about 5 years ago
- Status changed from ASSIGNED to POST
Updated by ppicka about 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset 120b8f29cbdecae74cd4990c659522ad24734e54.
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Populate created resources
As one shot upload run in task it should return some created resources. As repository is optional the task now returns package or package and repository version as resource created.
closes: #4474 https://pulp.plan.io/issues/4474
Signed-off-by: Pavel Picka ppicka@redhat.com