Project

Profile

Help

Issue #1103

closed

/crane/repositories endpoint uses wrong header

Added by mhrivnak over 8 years ago. Updated almost 5 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

Actions #1

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from NEW to POST
Actions #2

Updated by mhrivnak over 8 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

Added by dkliban@redhat.com over 8 years ago

Revision 470c9805 | View on GitHub

Check 'Accept' header to determine content type to return

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

Actions #3

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #5

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF