Bug 959436 - API call system.crash.getCrashNotesForCrash fails with traceback if note has no details
Summary: API call system.crash.getCrashNotesForCrash fails with traceback if note has ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 560
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On:
Blocks: sat560-api
TreeView+ depends on / blocked
 
Reported: 2013-05-03 13:32 UTC by Jiří Mikulka
Modified: 2014-10-06 13:46 UTC (History)
2 users (show)

Fixed In Version: spacewalk-java-1.9.83-33
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 21:44:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiří Mikulka 2013-05-03 13:32:34 UTC
Description of problem:
If you create new note for a specific software crash without Details filled in and then fetch all crash notes for the crash using API, it fails with traceback.

Version-Release number of selected component (if applicable):
Satellite-5.6.0-RHEL6-re20130502.1
spacewalk-abrt-1.9.6-1.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. create software crash for the system
2. create crash note without Details for the system
3. run system.crash.getCrashNotesForCrash(key, crid) API call
4. check the traceback
  
Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1387, in _parse_response
    p.feed(response)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 601, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 1, column 649

Expected results:
[{'updated': '5/3/13 9:23:34 AM EDT', 'subject': 'test', 'details': '', 'id': 7}]

Or in WebUI Details should be required as well as Subject.

Comment 1 Tomas Lestach 2013-05-07 09:09:15 UTC
the issue looks to be already fixed in upstream ...

spacewalk.git: 24a41ddb3b5164be8e864e04ad33ea78cf3f709d

Comment 5 Clifford Perry 2013-10-01 21:40:13 UTC
Satellite 5.6 has been released. This bug was tracked under the release.  

This bug was either VERIFIED or RELEASE_PENDING (re-verified prior shortly
before release). 

Moving to CLOSED CURRENT_RELEASE. 

Text from Upgrade Erratum follows:

Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1395.html


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