Bug 734224

Summary: Duplicate methods for /consumers/#uuid/certificates
Product: [Community] Candlepin Reporter: Jordan OMara <jomara>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED NOTABUG QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.5CC: athomas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-01 20:28:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jordan OMara 2011-08-29 19:03:41 UTC
Checking out ConsumerResource.java, it appears as if two methods respond equally to /consumers/#uuid/certificates. We would expect this endpoint to return a zipfile bundle of certificates, but instead we are getting either a zipfile bundle OR an array of json objects of each cert, PEM encoded.

I worked with cduryee on this bug already so it should probably be assigned to him.

Exists in 0.4.10

Comment 1 Bryan Kearney 2011-08-30 13:08:27 UTC
Are you passing in the media type? You should be passing in in application/json or applicatoin/zip.

Comment 2 Jordan OMara 2011-09-01 20:28:31 UTC
Good call Bryan. For some reason, this works by default in Stage but not in QA. ACCEPT header to application/zip clears us up. I had tested content-type instead of accept before which explains why it wasnt working!