~toabctl/livecd-rootfs:focal-repostamp-backports

Last commit made on 2021-09-28
Get this branch:
git clone -b focal-repostamp-backports https://git.launchpad.net/~toabctl/livecd-rootfs
Only Thomas Bechtold can upload to this branch. If you are Thomas Bechtold please log in for upload directions.

Branch merges

Branch information

Name:
focal-repostamp-backports
Repository:
lp:~toabctl/livecd-rootfs

Recent commits

da3c71a... by Thomas Bechtold

magic-proxy: fix TypeError when trying to call get_uri() LP:#1944906

Currently the uri that is passed into urllib.parse.urlparse() is not
prefixed with "http(s)://" which leads urlparse() to return a wrong
scheme/netloc/path. Currently it looks like:

ParseResult(scheme='', netloc='',
  path='de.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease'
 , params='', query='', fragment='')

That's wrong. The path should look like
'ubuntu/dists/impish-backports/InRelease'.
Prefixing the 'host' header with 'http://' in case it's not there does
fix the problem.

This fixes:

Traceback (most recent call last):
  File "/usr/lib/python3.9/socketserver.py", line 683, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.9/socketserver.py", line 747, in __init__
    self.handle()
  File "/usr/lib/python3.9/http/server.py", line 427, in handle
    self.handle_one_request()
  File "/usr/lib/python3.9/http/server.py", line 415, in handle_one_request
    method()
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 787, in do_GET
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 838, in __get_request
  File "/home/tom/devel/livecd-rootfs/./magic-proxy", line 84, in get_uri
TypeError: can only concatenate str (not "NoneType") to str

(cherry picked from commit 3559153c7d91dfb25e6aaf1d18152e945411d503)

efd0641... by Dimitri John Ledkov

magic-proxy: replace http.client with urllib calls

Initialize passwords from sources.list.
Use urllib everywhere.
This way authentication is added to all the required requests.
And incoming headers, are passed to the outgoing requests.
And all the response headers, are passed to the original client.
And all the TCP & HTTP errors are passed back to the client.
Thus should avoiding hanging requests upon failure.
Also rewrite the URI when requesting things.
This allows to use private-ppa.buildd outside of launchpad.

Signed-off-by: Dimitri John Ledkov <email address hidden>
(cherry picked from commit dc2a472871907bbed3ab89d2a46d924ece80d514)

3d65dbb... by Dimitri John Ledkov

Change iptables calls, to query rules and quickly check that connectivity works after transparent proxy has been installed. LP: #1917920

(cherry picked from commit 1cd8fe14b70e98220c519d679217737672ee9019)

8cb5a7d... by Michael Hudson-Doyle

releasing package livecd-rootfs version 2.664.29

1cef501... by Michael Hudson-Doyle

adjust changelog

1c66b45... by Jason C. McDonald

Generate manifest for HyperV desktop images

Manifests are necessary for candidate checking in the
CPC automated workflow for building and publishing
HyperV desktop images. (#1940136)

d893215... by Łukasz Zemczak

releasing package livecd-rootfs version 2.664.28

4cf38c5... by Łukasz Zemczak

Some more changes needed for enabling official intel-iot image builds.

44148c6... by Łukasz Zemczak

One more fix for intel-iot.

fd3b94a... by Łukasz Zemczak

releasing package livecd-rootfs version 2.664.27