Bug 160418 - Error in RHEL3-U4-errata python python-2.2-xmlfix.patch
Error in RHEL3-U4-errata python python-2.2-xmlfix.patch
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: python (Show other bugs)
3.0
All Linux
medium Severity high
: ---
: ---
Assigned To: Mihai Ibanescu
Brock Organ
RHEL3U7NAK
:
: 202713 (view as bug list)
Depends On:
Blocks: 170417
  Show dependency treegraph
 
Reported: 2005-06-14 19:34 EDT by Dan Williams
Modified: 2013-04-12 13:16 EDT (History)
3 users (show)

See Also:
Fixed In Version: RHSA-2006-0713
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-10-09 17:54:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Dan Williams 2005-06-14 19:34:04 EDT
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 19:37:29 EDT
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 08:49:23 EDT
*** Bug 202713 has been marked as a duplicate of this bug. ***
Comment 21 Red Hat Bugzilla 2006-10-09 17:54:07 EDT
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

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