~twom/launchpad:oci-fileno-error-on-upload

Last commit made on 2021-03-15
Get this branch:
git clone -b oci-fileno-error-on-upload https://git.launchpad.net/~twom/launchpad
Only Tom Wardill can upload to this branch. If you are Tom Wardill please log in for upload directions.

Branch merges

Branch information

Name:
oci-fileno-error-on-upload
Repository:
lp:~twom/launchpad

Recent commits

076490b... by Tom Wardill

Workaround requests handling of extract tar files

114dcd9... by Thiago F. Pappacena

Using admin (instead of commercial admin) when testing special snap permissions

Merged from https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/399614

13bffef... by Thiago F. Pappacena

Using admin (instead of commercial admin) when testing special snap permissions

9be4c26... by Thiago F. Pappacena

UI workflow for users to subscribe to snaps

Merged from https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/398319

8a3caa3... by Tom Wardill

Add exception and architecture logging to manifest upload

Merged from https://code.launchpad.net/~twom/launchpad/+git/launchpad/+merge/399346

3bc78ed... by Thiago F. Pappacena

Fixing import

44ad6e9... by Colin Watson

Send Content-Length when uploading OCI blobs to a registry

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/399526

b342f46... by Colin Watson

Send Content-Length when uploading OCI blobs to a registry

In Python 3.5, `tarfile.ExFileObject` has a `fileno` method that raises
`AttributeError`, which is enough to confuse `requests` into thinking
that it needs to do a chunked upload, which in turn causes `urllib3` not
to use the configured proxy. Explicitly passing a Content-Length header
is polite anyway, and works around this misbehaviour.

614c3f1... by Colin Watson

Tighten up file handling in OCIRegistryClient._upload_layer

Make sure we close file objects when we're finished with them.

b35aea6... by Colin Watson

Make memcache integration a little more flexible

Merged from https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/399428