Project

Profile

Help

Issue #2864

closed

202 response does not include a full URL of the task

Added by dkliban@redhat.com over 7 years ago. Updated almost 5 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 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.

Actions #1

Updated by ttereshc over 7 years ago

  • Description updated (diff)

Just "pre"d the description.

Actions #2

Updated by ttereshc over 7 years ago

  • Sprint/Milestone set to 41
  • Triaged changed from No to Yes
Actions #3

Updated by daviddavis over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to daviddavis
Actions #4

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

Revision c82dffb4 | View on GitHub

Convert relative url to full url in 202 responses

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

Added by daviddavis over 7 years ago

Revision c82dffb4 | View on GitHub

Convert relative url to full url in 202 responses

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

Actions #5

Updated by daviddavis over 7 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #7

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 22
Actions #8

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (41)
Actions #9

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #10

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #11

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF