python-requests in 14.04 LTS breaks on some https URLs

Bug #1450670 reported by Tessa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
New
Undecided
Unassigned

Bug Description

Having problems fetching files using the version of python-requests in 14.04. It works fine in 14.10 and more recent releases, so it appears to be a bug in the older version of python-requests that 14.04 has. This affects things like salt-stack, which leverage python-requests to pull in data.

# echo -e "import requests\nr = requests.get('https://logdog.loggly.com/media/loggly.com.crt')\nprint r.text" | python
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
    raise SSLError(e)
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: python-requests 2.2.1-1ubuntu0.2
ProcVersionSignature: Ubuntu 3.13.0-48.80-generic 3.13.11-ckt16
Uname: Linux 3.13.0-48-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.10
Architecture: amd64
Date: Thu Apr 30 23:16:44 2015
Ec2AMI: ami-5189a661
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: us-west-2b
Ec2InstanceType: t2.micro
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
PackageArchitecture: all
SourcePackage: requests
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tessa (unit3) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.