Bug 755854

Summary: not clear return value key for packages.getDetails in API documentation
Product: [Community] Spacewalk Reporter: Jan Hutař <jhutar>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.6   
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: 2011-12-22 16:50:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 723481    

Description Jan Hutař 2011-11-22 09:07:46 UTC
Description of problem:
Using documentation, I wanted to get channels which are providing given package but I have failed to learn key name for that value.


Version-Release number of selected component (if applicable):
spacewalk-java-1.6.77-1.el5


How reproducible:
always


Steps to Reproduce:
1. Go to https://<fqdn>/rhn/apidoc/handlers/PackagesHandler.jsp#getDetails
2. Try to find there how does field listing providing channels is called


Actual results:
In the documentation there is:

> Returns: 
>   struct - package 
>     [...]
>     string "arch_label"
>     array "string" 
>       label Channel label providing this package.
>     string "build_host"
>     [...]


Expected results:
I would expect to see there key for that value is 'providing_channels'.


Additional info:
Print of full info returned by packages.getDetails for some package:

{'description': '\n', 'build_date': '2010-08-03', 'providing_channels': ['mypackage'], 'vendor': 'Red Hat, Inc.', 'arch_label': 'noarch', 'name': 'mypackage', 'build_host': '<fqdn>', 'license': 'lic', 'checksum': '035a069ad2c15c9952d1275884e93cbb', 'payload_size': '124', 'last_modified_date': '2011-11-22', 'summary': 'This summary cointains nothing\n', 'epoch': '', 'version': '1', 'cookie': 'None', 'file': 'mypackage-1-1.noarch.rpm', 'path': 'redhat/1/035/mypackage/1-1/noarch/035a069ad2c15c9952d1275884e93cbb/mypackage-1-1.noarch.rpm', 'release': '1', 'checksum_type': 'md5', 'id': 1363, 'size': '1658'}

Comment 1 Tomas Lestach 2011-12-16 11:25:57 UTC
Fixed ...

spacewalk.git: ab1181450c9399724449b81a5f62cca466d69f08

Comment 2 Milan Zázrivec 2011-12-22 16:50:36 UTC
Spacewalk 1.6 has been released.