Bug 753064

Summary: ISE on API kickstart.keys.delete, when key does not exists
Product: Red Hat Satellite 5 Reporter: Šimon Lukašík <slukasik>
Component: APIAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Matej Kollar <mkollar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 541CC: cperry, dyordano, mkollar, mminar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-1.7.54-42-sat Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-21 09:20:52 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: 819036, 819081    
Attachments:
Description Flags
snippet of traceback from Catalina none

Description Šimon Lukašík 2011-11-11 08:27:03 UTC
Description of problem:


Version-Release number of selected component (if applicable):
RHN Satellite 5.4.1

How reproducible:
deterministic

Steps to Reproduce:
1. Create a SSL or GPG key (kickstart.keys.create)
2. Delete the key (kickstart.keys.delete)
3. Repeat step 2.
  
Actual results:
XmlRpcFault: unhandled internal exception: null

Expected results:
Exception, saying that the given key does not exists

Additional info:

Comment 1 Šimon Lukašík 2011-11-11 08:28:38 UTC
Created attachment 532993 [details]
snippet of traceback from Catalina

Comment 2 Stephen Herr 2012-03-13 17:41:37 UTC
Fixed in Spacewalk master: 28415092c0cac9925d9ab394392ddc33ece66f4f

Comment 5 Matej Kollar 2012-06-12 09:43:47 UTC
Reproduced against Sat 541 and verified against spacewalk-java-1.7.54-58.el6sat.

> #!/usr/bin/env python
> 
> import xmlrpclib
> import pprint
> import sys
> 
> myPPrint = pprint.PrettyPrinter(indent=4).pprint
> 
> SERVER = "http://%s/rpc/api" % "<FQDN>"
> USER   = "admin"
> PASS   = "nimda"
> 
> client = xmlrpclib.Server(SERVER, verbose=2)
> key = client.auth.login(USER, PASS)
> 
> myPPrint(client.kickstart.keys.create(key, "Some random description...", "SSL", "somekey..."))
> myPPrint(client.kickstart.keys.delete(key, "Some random description..."))
> myPPrint(client.kickstart.keys.delete(key, "Some random description..."))
> 
> client.auth.logout(key)

Comment 7 Clifford Perry 2012-09-21 09:20:52 UTC
This issue is resolved with the release of RHN Satellite 5.5. 

As of September 20th 2012, RHN Satellite 5.5 has been generally available. 

Release Notes and other 5.5 documentation can be found here:

 https://access.redhat.com/knowledge/docs/Red_Hat_Network_Satellite/

The associated Errata for the 5.5 release are:

5.5 Satellite GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1296.html

5.5 Upgrade Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1298.html

5.5 RHN Proxy GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1297.html

5.5 RHN Tools GA Errata
 - http://rhn.redhat.com/errata/RHEA-2012-1299.html

Regards,
Clifford
- Engineering Manager, Satellite