Bug 490422 - Replace use of gethostbyname() with getaddrinfo() in python client lib
Replace use of gethostbyname() with getaddrinfo() in python client lib
Status: CLOSED DUPLICATE of bug 489470
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: python-qpid (Show other bugs)
All Linux
medium Severity medium
: 1.3
: ---
Assigned To: Rafael H. Schloming
Frantisek Reznicek
Depends On:
  Show dependency treegraph
Reported: 2009-03-16 06:28 EDT by Frantisek Reznicek
Modified: 2015-11-15 19:07 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-05-08 14:36:00 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 Frantisek Reznicek 2009-03-16 06:28:11 EDT
Description of problem:

socket.gethostbyname(hostname) does not support IPv6 and should be replaced by 

[freznice@dhcp-lab-200 python]$ grep gethostbyname * */* */*/*
commands/qpid-cluster:        self.dottedQuad = socket.gethostbyname(text)
commands/qpid-cluster:                        ip = socket.gethostbyname(tokens[0])
commands/qpid-stat:        self.dottedQuad = socket.gethostbyname(text)
qmf/console.py:    socket.gethostbyname(self.host)
qmf/console.py:    return socket.gethostbyname(self.host) == socket.gethostbyname(host) and self.port == port
Binary file qmf/console.pyc matches
qpid/managementdata.py:    self.host = socket.gethostbyname (host)

Version-Release number of selected component (if applicable):
python-qpid-0.5.752581-1.el5 and svn tree rev.752581

How reproducible:

Steps to Reproduce:
1. grep gethostbyname * */* */*/*
2. cat $(rpm -ql python-qpid | grep -v ".py[co]") | grep gethostbyname
Actual results:
Some socket.gethostbyname() occurrences found.

Expected results:
No socket.gethostbyname() occurrences needed.

Additional info:
Comment 1 Gordon Sim 2009-05-08 14:36:00 EDT

*** This bug has been marked as a duplicate of bug 489470 ***

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