Handle 308 redirect change of behavior

Bug #1896797 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pydrive (Ubuntu)
Fix Released
High
Unassigned

Bug Description

httplib2 0.16 changed how 308 redirects are handled. This broke some existing python packages that weren't expecting that change when talking to Google servers that use 308 redirects. Like PyDrive.

= Reproducing =
Reproducing is a little difficult. I'm not entirely sure how, but it involves uploading a large or a lot of files and then eventually this error shows up.

I'm seeing this manifest higher up the chain with bug reports of errors like "RedirectMissingLocation: Redirected but the response is missing a Location: header"

= History =
https://github.com/httplib2/httplib2/issues/156
https://github.com/googleapis/google-api-python-client/issues/803
https://gitlab.gnome.org/World/deja-dup/-/issues/74

= Patches =
The pydrive2 project landed these patches to fix it:
https://github.com/iterative/PyDrive2/compare/c2609b74f41569f81e98376ab6cbc71333e82848...18537bbb5b9a7eee38c84bc1bbea46faf42c18b4

Maybe we could just apply those patches to this package too.

(Or also package pydrive2 instead of pydrive, but that's a bigger question.)

Changed in pydrive (Ubuntu):
status: New → In Progress
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pydrive - 1.3.1-0ubuntu2

---------------
pydrive (1.3.1-0ubuntu2) groovy; urgency=medium

  * debian/patches/handle_new_httplib.patch:
    - backport a fix for handling of 308 redirects in httplib2, taken from
      the pydrive2 fork of the project, thanks mterry! (lp: #1896797)

 -- Sebastien Bacher <email address hidden> Thu, 24 Sep 2020 15:07:29 +0200

Changed in pydrive (Ubuntu):
status: In Progress → Fix Released
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.