Bug 1313425 - Spacewalk produces invalid xmlrpc when transmitting ']]>' sequence
Spacewalk produces invalid xmlrpc when transmitting ']]>' sequence
Product: Spacewalk
Classification: Community
Component: API (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Gennadii Altukhov
Red Hat Satellite QA List
Depends On: 681463
Blocks: 462714 space27
  Show dependency treegraph
Reported: 2016-03-01 10:19 EST by Gennadii Altukhov
Modified: 2017-09-28 14:06 EDT (History)
6 users (show)

See Also:
Fixed In Version: redstone-xmlrpc-1.1_20071120-16
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 681463
Last Closed: 2016-06-16 04:10:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gennadii Altukhov 2016-03-01 10:19:54 EST
Description of problem:
Python's xmlrpclib cannot decode ']]>' as a string parameter.

Character sequence ']]>' is not permitted to appear in content unless
used to mark the end of CDATA-Section. Usually there is no need to
escape the '>' character. But it really should be escaped in the case
of ']]>' sequence generate a valid xml.

How reproducible:

Steps to Reproduce:
1. send API XML-RPC request to Spacewalk server, respond should contain ']]>' sequence
Actual results:
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1387, in _parse_response
  File "/usr/lib/python2.6/xmlrpclib.py", line 601, in feed
    self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 593

Expected results:
python xmlrpclib should parse respond w/o any problems

Additional info:
in request to server sequence ']]>' correctly escaped to ']]>', but in respond from server not. Looks like a bug in redstone XmlRpcSerializer.
Comment 1 Gennadii Altukhov 2016-03-01 10:20:52 EST
Comment 2 Gennadii Altukhov 2016-03-01 11:53:01 EST
Comment 3 Tomáš Kašpárek 2016-06-16 04:10:32 EDT
Spacewalk 2.5 was released.
Comment 4 Eric Herget 2017-09-28 14:06:37 EDT
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.

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