Bug 465829 - Errata.listPackages defines the struct of channel labels incorrectly
Summary: Errata.listPackages defines the struct of channel labels incorrectly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 530
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brad Buckingham
QA Contact: John Matthews
URL:
Whiteboard:
Depends On:
Blocks: 456996
TreeView+ depends on / blocked
 
Reported: 2008-10-06 16:01 UTC by Justin Sherrill
Modified: 2009-09-10 19:53 UTC (History)
2 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:53:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2008-10-06 16:01:05 UTC
The docs say Errata.listPackages returns:

array:

    * struct - package
          o int "id"
          o string "name"
          o string "epoch"
          o string "version"
          o string "release"
          o string "arch_label"
          o array "string"
                + label Channel label providing this package.
          o string "build_host"
          o string "description"
          o string "md5sum"
          o string "vendor"
          o string "summary"
          o string "cookie"
          o string "license"
          o string "file"
          o string "path"
          o string "build_date"
          o string "last_modified_date"
          o string "size"
          o string "payload_size"


The problem here is: 
          o array "string"
                + label Channel label providing this package.

This states that the key into the struct is "string", which makes no sense.  It is in reality "providing_channels".   So this should be:

          o array "providing_channels"
                + string - Channel label providing this package.

Comment 1 Brad Buckingham 2009-02-11 14:35:30 UTC
git commit: 955d649693231b17bb85c09baa349b6d8b9937cb

Method: listPackages
Description:
Returns a list of the packages affected by the erratum with the given advisory name.

Parameters:

    * string sessionKey
    * string advisoryName

Returns:

    * array:
          o struct - package
                + int "id"
                + string "name"
                + string "epoch"
                + string "version"
                + string "release"
                + string "arch_label"
                + array "providing_channels"
                      # string - Channel label providing this package.
                + string "build_host"
                + string "description"
                + string "md5sum"
                + string "vendor"
                + string "summary"
                + string "cookie"
                + string "license"
                + string "file"
                + string "path"
                + string "build_date"
                + string "last_modified_date"
                + string "size"
                + string "payload_size"

Comment 2 John Matthews 2009-02-17 14:51:11 UTC
ISO:  Satellite-5.3.0-RHEL5-re20090213.1-i386-embedded-oracle.iso

Method: listPackages
Description:
Returns a list of the packages affected by the erratum with the given advisory name.

Parameters:

    * string sessionKey
    * string advisoryName

Returns:

    * array:
          o struct - package
                + int "id"
                + string "name"
                + string "epoch"
                + string "version"
                + string "release"
                + string "arch_label"
                + array "providing_channels"
                      # string - Channel label providing this package.
                + string "build_host"
                + string "description"
                + string "md5sum"
                + string "vendor"
                + string "summary"
                + string "cookie"
                + string "license"
                + string "file"
                + string "path"
                + string "build_date"
                + string "last_modified_date"
                + string "size"
                + string "payload_size"

Comment 3 Brandon Perkins 2009-09-10 19:53:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


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