Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 490044 - dev-python/urlgrabber-3.9.1-r2 fails to download data over HTTPS: self.curl_obj.setopt(pycurl.SSL_VERIFYHOST,) throws pycurl.error 43
Summary: dev-python/urlgrabber-3.9.1-r2 fails to download data over HTTPS: self.curl_o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: http://yum.baseurl.org/gitweb?p=urlgr...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-11-01 13:17 UTC by Petr Pisar
Modified: 2018-04-22 09:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisar 2013-11-01 13:17:35 UTC
dev-python/urlgrabber-3.9.1-r2 cannot download data over HTTPS because incompatibility with dev-python/pycurl-7.19.0-r3.

If an HTTPS schema to download a document is used, urlgrabber dies:

$ urlgrabber https://google.com/
Traceback (most recent call last):
[...]
  File "/usr/lib64/python2.7/site-packages/urlgrabber/grabber.py", line 1161, in _set_opts
    self.curl_obj.setopt(pycurl.SSL_VERIFYHOST, opts.ssl_verify_host)
pycurl.error: (43, '')

This is because a wrong value is passed to setopt(pycurl.SSL_VERIFYHOST,).

Fix has already been applied by upstream <http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=b6bfd59c4393ea8ba5165aabb249c37d6d2a9931>:

From b6bfd59c4393ea8ba5165aabb249c37d6d2a9931 Mon Sep 17 00:00:00 2001
From: Seth Vidal <skvidal@fedoraproject.org>
Date: Fri, 18 Mar 2011 10:23:09 -0400
Subject: [PATCH] - if we're not using keepalives then don't reuse the connections
 - ssl verify host needs to be '2' when it is set to true - 1 is kinda meaningless

See Debian bug tracking system for reference <http://article.gmane.org/gmane.linux.debian.devel.bugs.general/1069387/match=715416>.
Comment 1 Stanislav Ochotnicky (RETIRED) gentoo-dev 2013-11-05 23:02:30 UTC
Alternatively it might be better/faster to just update urlgrabber unstable to 3.10 for which I just filed bug 490518.

Basically upstream has released a new version after 4 years with *a lot* of bugfixes + testuite addition.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-22 09:35:57 UTC
Assuming 3.10.1 is fine then.  Will stabilize in another bug.