Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1958945

Summary: python-httplib2 fails to build with Python 3.9.5 and 3.10: test_inject_space fails
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-httplib2Assignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: andreas.bierfert, dchen, gwync, igor.raits, jspaleta, kevin, mhroncok, pcahyna, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-httplib2-0.19.1-2.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-22 19:46:40 UTC Type: Bug
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: 1890881, 1927309    

Description Miro Hrončok 2021-05-10 13:12:42 UTC
python-httplib2 fails to build with Python 3.9.5 and 3.10.0b1:

______________________________ test_inject_space _______________________________
tests/test_http.py:738: in test_inject_space
    assert req.uri == "/?q=%20HTTP/1.1%0D%0Aignore-http:"
E   AssertionError: assert '/?q=%20HTTP/1.1ignore-http:' == '/?q=%20HTTP/...Aignore-http:'
E     - /?q=%20HTTP/1.1%0D%0Aignore-http:
E     ?                ------
E     + /?q=%20HTTP/1.1ignore-http:
        content    = b'GET /?q=%20HTTP/1.1ignore-http: HTTP/1.1\r\nHost: localhost:60717\r\nuser-agent: Python-httplib2/0.19.1 (gzip)\r\naccept-encoding: gzip, deflate\r\n\r\n'
        danger_url = 'http://localhost:60717/?q= HTTP/1.1ignore-http:'
        http       = <httplib2.Http object at 0x7f8525f2cf70>
        req        = <class 'tests.HttpRequest'> {'headers': {'host': 'localhost:60717', 'user-agent': 'Python-httplib2/0.19.1 (gzip)', 'ac...hod': 'GET', 'uri': '/?q=%20HTTP/1.1ignore-http:', 'proto': 'HTTP/1.1', 'version': '1.1', 'body': b'', 'body_raw': b''}
        response   = {'content-length': '142', 'status': '200', 'content-location': 'http://localhost:60717/?q=%20HTTP/1.1ignore-http:'}
        uri        = 'http://localhost:60717/'

https://koschei.fedoraproject.org/package/python-httplib2

This is might be related to some space related security changes in Python: https://docs.python.org/release/3.9.5/whatsnew/changelog.html#python-3-9-5-final


For the build logs with Python 3.10, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02171185-python-httplib2/

For all our attempts to build python-httplib2 with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-httplib2/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2021-05-13 14:53:19 UTC
Workaround in https://src.fedoraproject.org/rpms/python-httplib2/pull-request/7

Comment 2 Fedora Update System 2021-05-22 19:45:59 UTC
FEDORA-2021-0d5edf7c76 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0d5edf7c76

Comment 3 Fedora Update System 2021-05-22 19:46:40 UTC
FEDORA-2021-0d5edf7c76 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.