Actions
Issue #2864
closed202 response does not include a full URL of the task
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 22
Quarter:
Description
PUT /api/v3/importers/file/a5ee9125-9ec9-47ad-bc25-53f24b2d0ce7/
HTTP 202 Accepted
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
[
{
"_href": "/api/v3/tasks/1aa43f96-ebbb-45a3-9b34-df4546bed817/",
"task_id": "1aa43f96-ebbb-45a3-9b34-df4546bed817"
}
]
The href should be the full URL.
Updated by ttereshc over 7 years ago
- Sprint/Milestone set to 41
- Triaged changed from No to Yes
Updated by daviddavis over 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to daviddavis
Updated by daviddavis over 7 years ago
Looking at the DRF docs[1]:
"You should include the request as a keyword argument to the function..."
I think we need to do that on this line:
https://github.com/pulp/pulp/blob/3.0-dev/platform/pulpcore/app/response.py#L33
[1] http://www.django-rest-framework.org/api-guide/reverse/#reverse
Added by daviddavis over 7 years ago
Added by daviddavis over 7 years ago
Revision c82dffb4 | View on GitHub
Convert relative url to full url in 202 responses
Updated by daviddavis over 7 years ago
- Status changed from ASSIGNED to MODIFIED
Applied in changeset pulp|c82dffb4d40a3d096b369bde1741aa9a9982b015.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Convert relative url to full url in 202 responses
fixes #2864 https://pulp.plan.io/issues/2864