Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-39285

PoolManager.urlopen fails with TypeError for http connection if the PoolManager is instantiated with server_hostname

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • rhel-9.5
    • CentOS Stream 9
    • python-urllib3
    • None
    • python-urllib3-1.26.5-6.el9
    • None
    • Low
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • 19
    • 3
    • None
    • None
    • None

      What were you trying to do that didn't work?

      The issue is reported upstream in https://github.com/urllib3/urllib3/issues/2534

      Please provide the package NVR for which bug is seen:

       

      python3-urllib3-1.26.5-5.el9.noarch

      How reproducible:

       

      Allways which PoolManager is used with server_hostname

      Steps to reproduce

      Reproducer used in the reported upstream issue:

       

      >>> import urllib3

      >>> manager = urllib3.PoolManager(server_hostname='foo')

      >>> manager.urlopen('GET', 'http://127.0.0.1')

      Reports TypeError

      TypeError: {}init{}() got an unexpected keyword argument 'server_hostname'

      I'd say we need https://github.com/urllib3/urllib3/commit/f1d40fd07f7b5d9cf846a18fb5a920b4be07dfc5 or rebase to 1.25.9

       

      Note that OpenStack uses that via gabbi test runner.

       

       

              python-maint python-maint
              amoralej1@redhat.com Alfredo Moralejo
              Tomáš Hrnčiar Tomáš Hrnčiar
              Lukas Zachar Lukas Zachar
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: