Bug 642809
Summary: | Traceback when attempting to serve content over SSL | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ryan McCabe <rmccabe> | ||||
Component: | pyOpenSSL | Assignee: | Paul F. Johnson <paul> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 14 | CC: | a.badger, dmalcolm, fdinitto, fschwarz, ivazqueznet, james.antill, jonathansteffan, jpokorny, kylev, lmacken, paul, robinlee.sysu | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | pyOpenSSL-0.9-3.fc14 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-12-17 08:25:26 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Ryan McCabe
2010-10-13 20:49:17 UTC
FWIW, "memoryview" objects are new in Python 2.7: http://docs.python.org/library/stdtypes.html#memoryview-type Modules/socketmodule.:sock_sendall calls: if (!PyArg_ParseTuple(args, "s*|i:sendall", &pbuf, &flags)) This is what's emitting the: TypeError: must be string or read-only buffer, not memoryview message, within getargs.c:convertbuffer() This looks similar to this upstream problem: http://bugs.python.org/issue7133 though the fix for that is in the Python-2.7.tar.bz2 tarball in F14. Re-assigning to Python Tracked this down. It's an incompatibility between python-2.7's socket and pyOpenSSL. (The relevant code isn't actually in Modules/socketmodule.c. The self._sock that's getting used is from PyOpenSSL => OpenSSL.SSL.Connection This build seems to work for me: http://koji.fedoraproject.org/koji/taskinfo?taskID=2650286 I'll attach patch, reassign to pyOpenSSL and submit upstream. Created attachment 467328 [details]
Allow pyopenssl sendall to utilize a memoryview
Allow pyopenssl sendall to utilize a memoryview
Paul, I've built new packages for F14 and rawhide. If you don't object, I'll push the F14 one to stable after a suitable time in testing. rmmcabe, when it comes out, please test the update to see if it works for you. pyOpenSSL-0.9-3.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/pyOpenSSL-0.9-3.fc14 pyOpenSSL-0.9-3.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update pyOpenSSL'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/pyOpenSSL-0.9-3.fc14 pyOpenSSL-0.9-3.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |