Bug 753064 - ISE on API kickstart.keys.delete, when key does not exists
Summary: ISE on API kickstart.keys.delete, when key does not exists
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 541
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Matej Kollar
URL:
Whiteboard:
Depends On:
Blocks: sat550-api sat550-lowbug
TreeView+ depends on / blocked
 
Reported: 2011-11-11 08:27 UTC by Šimon Lukašík
Modified: 2012-09-21 09:20 UTC (History)
4 users (show)

Fixed In Version: spacewalk-java-1.7.54-42-sat
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-21 09:20:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
snippet of traceback from Catalina (7.71 KB, text/plain)
2011-11-11 08:28 UTC, Šimon Lukašík
no flags Details

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


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