Bug 1314491

Summary: /candlepin/<owner>/consumers API not filtering properly by sku
Product: [Community] Candlepin Reporter: Jonathon Turel <jturel>
Component: candlepinAssignee: Alex Wood <awood>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 0.9.51CC: awood, bcourt
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-22 14:39:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathon Turel 2016-03-03 18:21:17 UTC
Description of problem:

Applying the 'sku' parameter (ex: /candlepin/owners/5394945?sku=SER0232US) always returns an empty set.


Version-Release number of selected component (if applicable): candlepin-0.9.51.15-1


How reproducible: Always


Steps to Reproduce:
1. Attach a subscription to a consumer, noting the SKU
2. For that owner, query for consumers, filtering on that SKU using necessary attribute (?sku={SKU})


Actual results: 1 consumer should be returned

Expected results: 0 consumers returned


Additional info: I believe this is pending code review, waiting to be merged

Comment 1 Alex Wood 2016-03-03 19:29:04 UTC
Fixed in 8caba7d270b09abc5e64002e3e55c313a3c71b90

Comment 2 Mike McCune 2016-03-28 22:18:06 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 3 Barnaby Court 2016-07-22 14:39:48 UTC
Moving to closed per the updated candlepin process for bugs that have been merged or have been taken care of.