Bug 488378

Summary: repodata xmlrpc call response is not parsable by rhnlib
Product: [Retired] Red Hat Network Reporter: Pradeep Kilambi <pkilambi>
Component: RHN/BackendAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: RHN StableCC: morazi, rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-15 20:47:28 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: 249376, 489761    

Description Pradeep Kilambi 2009-03-03 23:06:26 UTC
Description of problem:

calling "repodata" rpc call in sat handler sends down a response, but is not parsable by rhnlib.

<xmlrpclib.ResponseError instance at 0xa369e8c>

  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 473, in getChannelCompsStream
    return self._rpc_call("repodata", (channel, file_name))
  File "/usr/share/rhn/satellite_tools/xmlWireSource.py", line 436, in _rpc_call
    ret = apply(getattr(get_server_obj, function_name), params)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 622, in __call__
    result = self._send(self._name, args)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 319, in _request
    request, verbose=self._verbose)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
    return self._process_response(fd, connection)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
    return self.parse_response(fd)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 239, in parse_response
    return u.close()
  File "/usr/lib/python2.4/xmlrpclib.py", line 742, in close
    raise ResponseError()
ResponseError: <xmlrpclib.ResponseError instance at 0xa42d72c>


The problem I think is with the content type in the response header. It seems to be None and hence python xmlrpclib is raising the exception.