Bug 755854 - not clear return value key for packages.getDetails in API documentation
Summary: not clear return value key for packages.getDetails in API documentation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 1.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-11-22 09:07 UTC by Jan Hutař
Modified: 2011-12-22 16:50 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-22 16:50:36 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.