Bug 743005

Summary: listChannelsConsumed return value and the documentation mismatch
Product: Red Hat Satellite 5 Reporter: Šimon Lukašík <slukasik>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 541CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-29 20:09:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description Šimon Lukašík 2011-10-03 14:48:08 UTC
Description of problem:
The API call org.trust.listChannelsConsumed returns:

 * array
    * struct
      * int "systems"
      * int "id"
      * int "packages"
      * string "name"
      * string "provider_name"

while the documentation reads:

 * array:
    * struct - channel info
       * int "channel_id"
       * string "channel_name"
       * int "packages"
       * int "systems"

Version-Release number of selected component (if applicable):
RHN Satellite 5.4.1
spacewalk-java-1.2.39-101.el6sat.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. call the api
2.
3.

Additional info:
This problem may actually also affects other api like 

  org.trust. listChannelsProvided

as it internally uses same data structures and same query
(trust_channel_consume).