Bug 160418

Summary: Error in RHEL3-U4-errata python python-2.2-xmlfix.patch
Product: Red Hat Enterprise Linux 3 Reporter: Dan Williams <dcbw>
Component: pythonAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: andreas, katzj, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: RHEL3U7NAK
Fixed In Version: RHSA-2006-0713 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-09 21:54:06 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: 170417    

Description Dan Williams 2005-06-14 23:34:04 UTC
In the RHEL3-U4-errata version of python that got pushed out, there's a small
error in python-2.2-xmlfix.patch that causes python XMLRPC servers to reject all
method calls, which means the XMLRPC server us pretty much useless.  The actual
error/traceback is covered up by the try/except block.

--- 161,168 ----
                      try:
                          func = _resolve_dotted_attribute(
                              self.server.instance,
!                             method,
!                             self.allow_dotted_names
                              )
                      except AttributeError:
                          pass

This comes from SimpleXMLRPCRequestHandler._dispatch() method, but
SimpleXMLRPCRequestHandler doesn't have the "allow_dotted_names" variable. 
SimpelXMLRPCServer does.  So the correct fix is:

--- 161,168 ----
                      try:
                          func = _resolve_dotted_attribute(
                              self.server.instance,
!                             method,
!                             self.server.allow_dotted_names
                              )
                      except AttributeError:
                          pass

(self.allow_dotted_names -> self.server.allow_dotted_names)

Comment 1 Dan Williams 2005-06-14 23:37:29 UTC
The error you get when you remove the try/except block is to see what's really
happening is:

xmlrpclib.Fault: <Fault 1: "exceptions.AttributeError:SimpleXMLRPCRequestHandler
instance has no attribute 'allow_dotted_names'">



Comment 11 Mihai Ibanescu 2006-08-16 12:49:23 UTC
*** Bug 202713 has been marked as a duplicate of this bug. ***

Comment 21 Red Hat Bugzilla 2006-10-09 21:54:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0713.html