RFE: Description of problem: errata.delete API for user created errata doesn't exist. I think that was an oversight. I think it is important for completion especially when we have create and delete api for all other entities like system, profile, channel etc. It would be useful as a cleanup api to customers as well as in our api automation. Otherwise lot of custom errata gets created and never gets deleted.
More of an RFE... but I have to believe that this is a trivial addition. If it turns out to be more than a day of work, then we'll punt it.
I agree this is an RFE, but it would be worthwhile addition to the API. I don't think it will be more than ~1/2 day effort, but will let you know if it is more once I dig in to it.
master git commit: aabbd6ec2a24997878f42050998e4852862314dc vader git commit: ef28b81e4f725f14beefd847f0f51420d7e92ba9 Added the following API to errata namespace: Method: delete Description: Delete an erratum. This method will only allow for deletion of custom errata created either through the UI or API. Parameters: * string sessionKey * string advisoryName Returns: * int - 1 on success, exception thrown otherwise. While adding this API also observed that APIs setDetails, addPackages and removePackages, from the errata namespace, would allow a user to invoke the method on a RH (non-custom) errata. Updated those APIs to throw an 'invalid errata' exception when a user attempts to do this.
verified. Added errata.delete api automation test. Also modified setDetails, addPackages and removePackages to add additional checking for this.
Verified in stage -> RELEASE_PENDING. * created errata 'test-1' via webUI * removed via API: $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx errata.delete test-1 OK * errata disappeared from webUI, OK * tried to remove non-existent errata $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx errata.delete asdf Fault returned from XML RPC Server, fault code -208: redstone.xmlrpc.XmlRpcFault: The errata asdf cannot be found. * tried to remove errata from RH channel $ ./xmlrpc-client.pl dell-pem710-01.rhts.eng.bos.redhat.com admin xxx errata.delete RHEA-2009:8822 Fault returned from XML RPC Server, fault code 2600: redstone.xmlrpc.XmlRpcFault: Invalid errata: RHEA-2009:8822
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