Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: .reset() method has some unintended side effects, breaks error reporting. Version-Release number of selected component (if applicable): python-pycurl-7.19.0-10.fc17.i686 How reproducible: Always. $ cat t.py import sys, pycurl c = pycurl.Curl() if 'reset' in sys.argv: c.reset() c.setopt(pycurl.URL, 'http://localhost:0') try: c.perform() except pycurl.error, e: print e $ python t.py $ python t.py reset Actual results: (7, "couldn't connect to host") (7, '') Expected results: (7, "couldn't connect to host") (7, "couldn't connect to host") Additional info:
Created attachment 682231 [details] Reinitialize PYCURL_ERRORBUFFER after reset The CURL_ERRORBUFFER option is NOT supported by pycurl (it's not exposed in Python API). However, when a new handle is created, this option is set. The reset() method should be consistent, and reinitialize the CURL_ERRORBUFFER option.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Created attachment 702502 [details] upstream fix The underlying problem is more general: all pycurl-specific defaults need to be reinitialized in reset(). The attached upstream patch fixes it. Zdenek, could you please have a look at the patch before it goes to stable branches? Thanks in advance!
fixed in python-pycurl-7.19.0-14.fc19
Created attachment 702661 [details] upstream fix V2 I have only removed a left-over global variable introduced by the upstream patch.
Yes, it's possible that pycurl defaults != curl defaults, and this should handle it nicely. ACK and thanks!
Comment on attachment 702661 [details] upstream fix V2 Thanks for review! I will submit updates for stable Fedora.
python-pycurl-7.19.0-11.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/python-pycurl-7.19.0-11.fc17
python-pycurl-7.19.0-13.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-pycurl-7.19.0-13.fc18
Package python-pycurl-7.19.0-11.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-pycurl-7.19.0-11.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-3119/python-pycurl-7.19.0-11.fc17 then log in and leave karma (feedback).
python-pycurl-7.19.0-13.fc18 fixes this bug I left positive karma at https://admin.fedoraproject.org/updates/F18/FEDORA-2013-3157
Thank you for the confirmation, Vasilis!
python-pycurl-7.19.0-13.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
python-pycurl-7.19.0-13.1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/python-pycurl-7.19.0-13.1.fc18
python-pycurl-7.19.0-11.1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/python-pycurl-7.19.0-11.1.fc17
python-pycurl-7.19.0-15.1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/python-pycurl-7.19.0-15.1.fc19
python-pycurl-7.19.0-15.1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
python-pycurl-7.19.0-11.1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
python-pycurl-7.19.0-13.1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.