Project

Profile

Help

Issue #1103

/crane/repositories endpoint uses wrong header

Added by mhrivnak over 6 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Crane:
1.1.0
Platform Release:
Target Release - Crane:
1.1.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

The endpoint ```/crane/repositories``` looks for the ```Content-Type``` header to decide what type of content to return in the response. That is an incorrect use of this header, and the correct one to use is ```Accept```.

https://tools.ietf.org/html/rfc7231#section-5.3.2

Associated revisions

Revision 470c9805 View on GitHub
Added by dkliban@redhat.com over 6 years ago

Check 'Accept' header to determine content type to return

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

History

#1 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from NEW to POST

#2 Updated by mhrivnak over 6 years ago

  • Assignee set to dkliban@redhat.com
  • Version - Crane changed from 1.2.0 Beta to 1.1.0
  • Target Release - Crane set to 1.1.0
  • Triaged changed from No to Yes
  • Tags Easy Fix added

#3 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#4 Updated by dkliban@redhat.com about 6 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#5 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF