Bug 959436
| Summary: | API call system.crash.getCrashNotesForCrash fails with traceback if note has no details | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Jiří Mikulka <jmikulka> |
| Component: | API | Assignee: | Tomas Lestach <tlestach> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Korbel <mkorbel> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 560 | CC: | cperry, mkorbel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-java-1.9.83-33 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-01 21:44:36 UTC | Type: | Bug |
| 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: | 924158 | ||
the issue looks to be already fixed in upstream ... spacewalk.git: 24a41ddb3b5164be8e864e04ad33ea78cf3f709d 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 |
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.