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 - python-httplib2 fails to build with Python 3.9.5 and 3.10: test_inject_space fails
Summary: python-httplib2 fails to build with Python 3.9.5 and 3.10: test_inject_space ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-httplib2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10 F35FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-05-10 13:12 UTC by Miro Hrončok
Modified: 2021-05-22 19:46 UTC (History)
9 users (show)

Fixed In Version: python-httplib2-0.19.1-2.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-22 19:46:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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