~quantifics/canonical-identity-provider:master

Last commit made on 2023-06-28
Get this branch:
git clone -b master https://git.launchpad.net/~quantifics/canonical-identity-provider
Only John Paraskevopoulos can upload to this branch. If you are John Paraskevopoulos please log in for upload directions.

Branch merges

Branch information

Recent commits

e6a9cbf... by John Paraskevopoulos

Update xenial dependencies in ols-vms.conf

8489eea... by John Paraskevopoulos

Set ols-vms.conf back to xenial

c82768d... by John Paraskevopoulos

Bump dependencies for focal upgrade

Also keeps xenial support

Merged from https://code.launchpad.net/~quantifics/canonical-identity-provider/+git/canonical-identity-provider/+merge/445435

6d9aa0a... by John Paraskevopoulos

Simplify cert CN and SSO_ROOT_URL setting

15160f7... by John Paraskevopoulos

Add xenial check in run-ssl target

12a7d8f... by John Paraskevopoulos

Add xenial dependencies(-devel)

Since we want to be flexible in terms of focal/xenial switches (until we
are safely fully switched) we need to support both scenarios. Since some
dependencies on focal don't work for xenial (and vice versa) we add two
new "xenial" dependencies files to use when we are on xenial (and have
the default dependencies files for focal). Also added a way to pick the
appropriate based on system version in `setup-container` script and
another change in the `Makefile.db` to switch between the two different
postgresql versions

fcbc057... by John Paraskevopoulos

Use urllib.parse quote for ~

Re-introduces properly a way to make the ~ character testable in the
test_discovery.py. Uses urllib's quote which in python 3.5 escapes the
character whereas in higher versions it does not

2efd175... by John Paraskevopoulos

Specify python 3.5 requirement restrictions

Specifies restrictions in requirements for python 3.5 in cases where it
was not possible to reuse the 3.8 requirements

d3e006f... by Daniel Manrique

Excise mentions of focal from readme and ols-vms.conf

a4a0d36... by Daniel Manrique

Fix obsolete quoting in test_invalid_user.

In Python 3.5 and older, ~ in a URL was quoted by urllib.quote:

Python 3.5.2 (default, Jan 26 2021, 13:30:48)
>>> from urllib.parse import quote
>>> quote('/~foo')
'/%7Efoo'

As of Python 3.6, ~ is not quoted:

Python 3.8.10 (default, Nov 14 2022, 12:59:47)
>>> from urllib.parse import quote
>>> quote('/~foo')
'/~foo'

This change of behavior is documented:

https://docs.python.org/3.5/library/urllib.parse.html#urllib.parse.quote

new behavior:

https://docs.python.org/3.6/library/urllib.parse.html#urllib.parse.quote

I didn't track down exactly why this changed, but since the test was
ultimately just checking the output of quote() I just changed the
expected value to match.