Bug 479440 - API: satellite.listEntitlements missing key names in return arrays
API: satellite.listEntitlements missing key names in return arrays
Status: CLOSED CURRENTRELEASE
Product: Spacewalk
Classification: Community
Component: API (Show other bugs)
0.4
All Linux
low Severity medium
: ---
: ---
Assigned To: Brad Buckingham
Red Hat Satellite QA List
:
Depends On:
Blocks: space04
  Show dependency treegraph
 
Reported: 2009-01-09 11:33 EST by Brad Buckingham
Modified: 2009-01-22 11:31 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-22 11:31:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Brad Buckingham 2009-01-09 11:33:02 EST
Description of problem:

The API documentation for the satellite.listEntitlements is missing the key names for the system and channel array lists returned.

How reproducible:
always

Steps to Reproduce:
1. go to https://<HOST>/rhn/apidoc/satellite/SatelliteHandler.jsp
  
Actual results:
observe satellite.listEntitlements lists 2 arrays for system and channel entitlements; however, they "key" to access them is not included in the array.

E.g.Returns:

    * struct - channel/system entitlements
          o array
                + struct - system entitlement
                      # string "label"
                      # string "name"
                      # int "used_slots"
                      # int "free_slots"
                      # int "total_slots"
          o array
                + struct - channel entitlement
                      # string "label"
                      # string "name"
                      # int "used_slots"
                      # int "free_slots"
                      # int "total_slots"

Expected results:

The key is included in the array docs.  

E.g. 

Returns:

    * struct - channel/system entitlements
          o array "system"
                + struct - system entitlement
                      # string "label"
                      # string "name"
                      # int "used_slots"
                      # int "free_slots"
                      # int "total_slots"
          o array "channel"
                + struct - channel entitlement
                      # string "label"
                      # string "name"
                      # int "used_slots"
                      # int "free_slots"
                      # int "total_slots"


Additional info:
Comment 1 Brad Buckingham 2009-01-09 11:37:17 EST
updated doc w/ commit:
4ac41f11a199947272cff97ab881da4f06abcb11
Comment 2 Brad Buckingham 2009-01-15 09:27:27 EST
verified on spacewalk-java-0.4.14-1.el5

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