6697 Commits

Author SHA1 Message Date
James Valleroy
c2ecbbafb4 freedombox Debian release 21.10
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmFSWqgACgkQd8DHXntl
 CAjkKQ/+O0wCPlC+03CmthWFAf5O4UdYJ6IqVm0wHzbiyt1BS3Hcd13TQwz34OAf
 XaaUiGwJEaTfSV1l3uEinfWyrlNsku9p28ivRIZIb3QKZK7hXNI0Hp1XZif6bFGy
 1qCatlgVlbIFTC4m9g1Yly7SkkpB3a6YclCDvHi/+4xYw8aYaRRb727z3JhdLZ6R
 eC8DQqtA0v5hBoAeNNd9NsZfzs6p0sNRCR6xVRGeXugg8Z83b84rEwzkOH5xYrV1
 AEryHrmVrSE79Zfe55etRUyGvBLsblw3iptWkIkjtKRPAufF8ADCsbnTLq5wX+y0
 lQ+dCERiKisonqNxmIbILWm+7u5r9Oq2PwhJTMdMdMC4mQwkGLSfmzoSDoKEpVQs
 kDxBpp4LZC9trbpVGRvRgzNi3qhR0Gz6lCvxJkVZTybGKG8OGiGAYYHfHDRWP8V1
 3mzHW/acywTGMz1crfDSwfDDMsEK2/E004o8lVX3zWEv9RiJY62rWSssUehdxHTf
 h5DigoHguGUzTdd8RfO/1ccUcWOHUlKEgl8ec6wMRwJFiHFfDoi6sYBxEDj0JjAb
 EbesYsaCGYz3p1KUMsOhopopoQCv0cIivqckpKXUfyEIwjjn9r96bm/kmDrHgVyf
 2wjfKhHt8cvDy3n0XoAVJ/kIEsh/b8CRdog/OKIFPvIhrGUlzIM=
 =EjGu
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmFV690ACgkQd8DHXntl
 CAhbQxAAya2oIPpnYqwINeefP71fnfq/FYjxaitaxtZz7VCFl5DIv1u3fF47aqMh
 hwLmWADjTRLJvuNRFRRPW5JqBCWifX0Z/GvdmTQTNqkYeuCmimb7HweMycYTZKKw
 N6XFOYe3L22VHeUC0cj3+jniOTn4Q0XQGILpWPhSig/PoVc++7hckr5KOASQ9+jw
 3HO40gKuzP1/VD1rkQOo9w1dosK/oXGOCaYVWmc+uHEkwPaohAdnxsIZ5+3GdcMU
 HS7O8/JseAVC7tRWga2DFysFl/XBdwMKVPHJ4ZywWd9l1dmT+xq5noPXePLhMngA
 cfrQdSrucgrYbhrC4S52BALG5NtYn4vwOE6jAs7c9KxnD1R9Qzsc6sdBWE1qAqTY
 uGFbxRlWQqysvvD749fgy3J0ois6ULYiRmorlPs8/07eCwNKSVqnGbXizDjcVdC0
 8t4wXIiIRoAx9McHXDcTDjKJuPaN+oH8yZZLAILAAf7Waiva2oLB3V+zSp1Dq+Gw
 wbGjwW+yPvOFvBM6cxmVjZsjXQMM2PQ+mdRleXdVKXXmqxPuyf3WP8hd5YTJuwyE
 a4M0c2vjqPpljBZyNNMzJKjI8lK62Eo1iQZXURmUo6mx7cYHqNG5g0C9adeAbvCV
 Ta6Tv1pgjYzhars0KAvsF98RdTby/xvKmUquC0ghPfXtIooPKzw=
 =eOXz
 -----END PGP SIGNATURE-----

Merge tag 'v21.10' into debian/bullseye-backports

freedombox Debian release 21.10

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-30 12:54:50 -04:00
James Valleroy
294410019f
Release v21.10 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.10
2021-09-27 19:24:35 -04:00
James Valleroy
7a4058a3a2
debian: Set Standards-Version to 4.6.0
No changes needed.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-27 19:23:37 -04:00
James Valleroy
3e0d81fd41
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-27 19:09:14 -04:00
James Valleroy
f2331ef859
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-27 18:45:48 -04:00
James Valleroy
6c84e50040
mumble: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:44 -07:00
James Valleroy
953d574692
monkeysphere: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:37 -07:00
James Valleroy
0faff1f188
mldonkey: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:29 -07:00
James Valleroy
79d1588691
mediawiki: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:21 -07:00
James Valleroy
73dac73808
ikiwiki: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:14 -07:00
James Valleroy
19fb965237
help: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:37:05 -07:00
James Valleroy
373bda1133
ejabberd: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 14:36:54 -07:00
James Valleroy
db32e885d9
dynamicdns: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:59 -07:00
James Valleroy
ffde6f1c18
deluge: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:51 -07:00
James Valleroy
0baa96f605
datetime: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:43 -07:00
James Valleroy
397d6a424e
coturn: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:35 -07:00
James Valleroy
a6066278aa
config: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:27 -07:00
James Valleroy
cb430b4b4b
bind: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:48:19 -07:00
James Valleroy
0213fe370b
bepasty: Convert functional tests to non-BDD python format
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Avoid global variable]
[sunil: Make a method local]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2021-09-26 13:47:48 -07:00
Sunil Mohan Adapa
a0d880b62c
sso: Update usage of OpenSSL crypt signing API
Avoid the deprecation warning:

DeprecationWarning: str for data is no longer accepted, use bytes
    sig = crypto.sign(pkey, data, 'sha512')

Tests:

- Login to web interface, access Syncthing web interface. The login should work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-26 12:29:45 -04:00
Sunil Mohan Adapa
07e62a213b
views: Update utility for checking URL safety
Django has updated the is_safe_url() method that we based our implementation on.
It is now called url_has_allowed_host_and_scheme(). Our implementation remains
simple as we don't allow any hostname or scheme to be set.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-26 11:25:07 -04:00
Johannes Keyser
53539c7454
Translated using Weblate (German)
Currently translated at 100.0% (1514 of 1514 strings)
2021-09-26 08:35:30 +02:00
Sunil Mohan Adapa
351ba99c12
mediawiki: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:01 +03:00
Sunil Mohan Adapa
757d24c2be
ejabberd: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:00 +03:00
Sunil Mohan Adapa
cf32de2839
matrixsynapse: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:00 +03:00
Sunil Mohan Adapa
1ec16a7d58
openvpn: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:00 +03:00
Sunil Mohan Adapa
344915d84e
gitweb: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:00 +03:00
Sunil Mohan Adapa
3526099c03
sso: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:41:00 +03:00
Sunil Mohan Adapa
c28d3eea2f
calibre: tests: Use common fixtures for testing actions module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:40:59 +03:00
Sunil Mohan Adapa
320729413d
tests: Introduce fixtures to make it easy to test actions
- Derived from the often repeated fixture code in various test_actions.py files.

- Don't use the deprecated imp module. Instead use importlib. imp module will be
removed in future versions of Python.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-25 12:40:59 +03:00
Sunil Mohan Adapa
b32d0f17f0
*: Use allow/denylist instead white/blacklist in comments
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
2021-09-25 07:44:15 +05:30
Sunil Mohan Adapa
05565b1c60
settings: Set Django auto field type explicitly
This is already the default (Django 3.2), however, setting it explicitly seems
to avoid a warning while running 'django-admin makemigrations'.

Tests:

- Add SECRET_KEY to settings.py temporarily. Run the command 'django-admin
makemigrations --pythonpath=. --settings=plinth.settings'. There should no
warnings related DEFAULT_AUTO_FIELD not being set.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-22 21:52:30 -04:00
Sunil Mohan Adapa
613d3a856f
signals: Drop provider args when creating Signal object
- Convert the information into code comments.

- This argument seems to be unused. Passing the argument has been deprecated. On
Django 3.2 it throws a warning that it will be removed from Django 4.0.

Tests:

- Run unit tests on Django 3.2 and Django 2.2. With Django 3.2, warning related
to provider_args are no longer show.

- On Django 3.2 and Django 2.2, change the hostname to trigger a signal.

Tests:

- Install ebabberd. Goto system -> config and change the hostname and domain
name. This triggers pre_hostname_change, post_hostname_change, domain_removed
and domain_added signals. There should be no errors during the process. Console
shows no errors.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-22 21:52:20 -04:00
Andrij Mizyk
c330d7d530
Translated using Weblate (Ukrainian)
Currently translated at 78.5% (1189 of 1514 strings)
2021-09-21 22:38:16 +02:00
Michael Breidenbach
676729acbb
Translated using Weblate (Swedish)
Currently translated at 100.0% (1514 of 1514 strings)
2021-09-21 22:38:15 +02:00
Burak Yavuz
e7105afcb6
Translated using Weblate (Turkish)
Currently translated at 100.0% (1514 of 1514 strings)
2021-09-21 22:38:15 +02:00
Dietmar
cf6099cfb9
Translated using Weblate (Italian)
Currently translated at 53.0% (803 of 1514 strings)
2021-09-21 22:38:14 +02:00
Dietmar
05d62c2354
Translated using Weblate (German)
Currently translated at 99.5% (1507 of 1514 strings)
2021-09-21 22:38:14 +02:00
James Valleroy
c32ebda9ef
Release v21.9~bpo11+1 to bullseye-backports
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v21.9_bpo11+1
2021-09-21 13:06:18 -04:00
James Valleroy
3f8d529389 freedombox Debian release 21.9
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmFF9NoACgkQd8DHXntl
 CAglCQ/9FykcYeFj+TgP4xIEIIMgnVyFaLpzvbCt/QwTZVCDiYwRxIAlbxzTEjIl
 XHRPlhXg4vY57yEgB2NGqatXD0JuvQKM9dWx8Kc9yfKI+pQquZqrWWxQ3ALi3WH2
 Glev8GA85r2BbeegNuxy1k+Oq1ceIcEmOP+ipUptzrJk8LPPmG/WQoqn4lr5SB9+
 rsusf/wTzLglXtVXgDjAbmmtmd7xT5bHUQ83uX4mSRh7pXauVbrVR4onwibonqXi
 lpvAtg5fOma36BdMgtIX4qI+y7AlEvVzdcMaygGup8oemLVE5Sd179thjSyEeEYL
 FKt80OQoeHW4G3QvOvRZlG3vseb4xsFlfOUJGjF3lBjzaMngMoGls1E2zu5J3KmX
 csup5MCXOw4dh468hY1dyhk8GQ1mzHTw/z2iWPk0VTT92mxhEZ2Exb45LZ8PXoKR
 HGBRhpPdtpYXVQ9LHOcJZWgWODx/cngQ2LJGOsEXdaEEwPpzA7VKz65NNfz0x8s0
 CyXbYcIihzfdCWGAs9i787rrwupOPGldrlPhbuZxMjupcjnCEg+PIh3g7trpDhh/
 D6/b7J5eieWV3e6SHQdIXjCgSb8S8BIqPDIyAFduwg1RK8OFpEZoONtcam34xilm
 5xboI0lWelbWQA95drhyCUOI8oZDjKDrUHOb8hmYDTvdl9Y/gPA=
 =+qRd
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEfWrbdQ+RCFWJSEvmd8DHXntlCAgFAmFKENMACgkQd8DHXntl
 CAgZQxAA0z7e+4fu8KdEE0I8EWgUtdgXUWHWmENv3mOlYCRKRDWdy+GH5bDeS5TX
 z/ae+k/L60UYKQbyBJQQGXTxfGyvRlZ6EuAkhQiP7SYM198ogECzbn65SziBmno0
 IKJpmaOatxWuJXu2ID1COzxdS8O2+CNjAtHnMh9luoOA1txIjxEaSmp02z9btSJD
 H5MB0YPLwZoXBtJnsXhHPonWBfXUvV8W1uOGQY9gnRVbAoX/UGQfUuoMgk4zTih8
 gP8G2Sa7u7zZZtT+AVTuteWlpFZprhCdcNS8bu6789O7Hrt7RdtWWz0JyZ5IgpiE
 JPECgiiCrF9m/RpFGbFtgth3nxt19qcFGvARNWSx93NcgSzJj8XWkYaO6o+lEh2R
 6F74WVYrIVKncSgae1EE2ym1Xj+88gcLbzVyHcbG28IK5g2jssO4QHZXENoixGmA
 V/TLFhlZ+tVs+J5NrtRK5DICyPLuNMeUr0P6xkfuVPrc23htHAZe0kDc6y0wbpRA
 jYeBUiZQYKY2Um2t8UzJaOCNiC67ILF9Ul0bBSQq+nlauY3Y6uHmZop+GkIF/eX9
 pInZXHveZFYaxgr3mNiWH051+LtVxVIW7wvJP/QZFhsvhH+rpS3SqIebZ7bfTf0A
 WC8i0T6O7PwH9yP4uH4WgPa52j2sRIha0o5jQ0UQhjVknTUGFZo=
 =mx6f
 -----END PGP SIGNATURE-----

Merge tag 'v21.9' into debian/bullseye-backports

freedombox Debian release 21.9

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-21 13:05:21 -04:00
Sunil Mohan Adapa
cd2b2f5f2c
*: Use django.urls.re_path() instead of its alias url()
- In Django 2.2 django.conf.urls.url() is an alias to django.urls.re_path().

- In Django 4.0, url() function will be removed. On Django 3.2, it throws a
warning that this function will be removed in future.

Tests:

- Run unit tests with Django 3.2 and Django 2.2.

- With Django 3.2 there are no warnings when running unit tests and when running
FreedomBox Service.

- Visit a few affected apps with both Django versions.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:47 -04:00
Sunil Mohan Adapa
a3e21adc8b
*: Various isort fixes
- Done automatically by running isort . in top level directory.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:37 -04:00
Sunil Mohan Adapa
dcb69b447b
pyproject: Make isort consistent across execution environments
In some cases, isort is not treating "plinth" module as a "first party" module.
It is then treated as a "third party" module and groups with non-standard python
libraries that we use. This behavior seems to dependent on from where isort is
run.

To eliminate this uncertainty, explicitly mark "plinth" module without depending
on automatic detection of isort. The two preferred ways to provide the
configuration are using .isort.cfg and pyproject.toml. The former introduces yet
another file in the project directory while the latter, a new python PEP,
promises to unify several other such configuration files.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:27 -04:00
Sunil Mohan Adapa
74214c18ae
*: Use Django gettext functions instead of ugettext
- ugettext functions will be removed in Django 4.0. Each use emits a warning
when running with Django 3.2. Since we have warnings enabled in developer mode,
we see quite a few messages because of this.

- ugettext is already a simple alias of gettext. So, no regressions are
expected.

Tests:

- Accessing an affected app in UI with Django 3.2 and Django 2.2 works fine.

- Using Django 3.2 there are no warnings related to removal of ugettext
functions.

- Ran regular unit tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:16 -04:00
Andrij Mizyk
9ebbc34f1e
Translated using Weblate (Ukrainian)
Currently translated at 75.4% (1143 of 1514 strings)
2021-09-19 21:42:21 +02:00
Andrij Mizyk
99383d8b48
Translated using Weblate (Ukrainian)
Currently translated at 75.4% (1143 of 1514 strings)
2021-09-19 21:07:03 +02:00
Andrij Mizyk
c5793cfc3b
Translated using Weblate (Ukrainian)
Currently translated at 75.4% (1143 of 1514 strings)
2021-09-19 17:05:07 +02:00
Sunil Mohan Adapa
ffe34d013a
tests: functional: Use newer splinter API for finding links
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-19 07:48:16 +03:00
Sunil Mohan Adapa
2abe7315f9
calibre: tests: functional: Use newer splinter API for finding links
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-19 07:48:11 +03:00
Sunil Mohan Adapa
e6b1fe6783
dynamicdns: tests: functional: Use newer splinter API for finding links
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-09-19 07:48:05 +03:00