7545 Commits

Author SHA1 Message Date
James Valleroy
fc0ce69ddb
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 20:51:27 -04:00
James Valleroy
a3b2751200
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 20:22:26 -04:00
Sunil Mohan Adapa
e4f8a7942f
ejabberd: Revert changes to always keep localhost (aa5b1cea126d37)
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 17:06:03 -07:00
Sunil Mohan Adapa
15038ae24c
transmission: Simplify actions using the privileged decorator
Tests:

- Get and set the storage path.

- Functional tests pass.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 18:17:18 -04:00
Sunil Mohan Adapa
a68776d04b
doc: dev: Use and recommend new privileged actions
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 18:17:07 -04:00
Sunil Mohan Adapa
4fed6921d6
actions: Add a decorator for marking superuser actions
Any privileged action (a method) can be marked as such with the new decorator. A
call to the method will be serialized into a sudo call (or later into a D-Bus
call). The method arguments are turned to JSON and method is called as
superuser. Arguments are de-serialized and are verified for type before the
actual call as superuser. Return values are serialized and returned where they
are de-serialized. Exceptions are also serialized and de-serialized.

The method must have be strictly typed and should not have keyword-only
arguments. Currently supported types are int, float, str, dict/Dict, list/List
and Optional.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 18:16:47 -04:00
nbenedek
3ec086411b
mediawiki: Add option to change the site name
[sunil: Update the form description for styling]
[sunil: Show the default site name when nothing is set]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 14:13:28 -07:00
Sunil Mohan Adapa
aa5b1cea12
ejabberd: Make localhost disabled option in domain selection
Remove the label description that says the localhost option is not shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 12:51:41 -07:00
James Valleroy
1a39212313
ejabberd: Add multi-select form for domains
Choices includes all of the available domain names in the system, as
well as any domains that are in ejabberd configuration.

Tests:

- Disable a domain. It is removed from ejabberd config.

- Enable a domain. It is added to ejabberd config.

- Enable all name services. Run ejabberd functional tests and observe
  that they pass.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 11:09:31 -07:00
James Valleroy
7d4c3dbb67
ejabberd: Automatically use coturn
Closes #2183.

Tests:

- Install Ejabberd. "Automatically manage audio/video call setup" is
  enabled.

- Set a domain name and install Coturn. Ejabberd config is updated.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 11:09:18 -07:00
James Valleroy
b43e42ac7a
tests: Add a dummy parameter for middlewares
From the Django 4.0 release notes: The get_response argument for
django.utils.deprecation.MiddlewareMixin.__init__() is required and
doesn’t accept None.

It appears that any non-None value can be used here, so I pass in
`True` when initializing middlewares for tests. I don't know if this
was the intended value, but it does fix the tests.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-20 10:40:48 -07:00
Sunil Mohan Adapa
2a0239b6ba
users: Fix deleting user LDAP entry with Django 4.0
Helps: #2228.

In Django 4.0, form_valid() method should be overridden instead of delete()
method. This is because DeleteView inherits from FormMixin. To make the code
work for Django 2.2 and up, implement both methods but make delete() method
available only after base __init__() so that Django does not show a warning with
Django 4.0.

Tests:

- Run unit tests on stable, testing and unstable containers.

- Create a temporary user and delete the user. User deletion success message
must be show. Create another user with the same username as the deleted user (to
ensure that deletion actually happened). Perform the test on stable, testing and
unstable containers.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 10:23:17 -04:00
Sunil Mohan Adapa
5d0a7c6d16
translation: Don't use session for storing lang pref in Django 4.0
Helps: #2228.

- In Django 3.0, storing language preference in session key is deprecated and
only the language cookie is used. In Django 4.0, this functionality is
completely removed along with the constant LANGUAGE_SESSION_KEY.

- Debian stable (Bullseye) uses Django 2.2 and this depends on code to store
language preference in session key. To work on Django 2.2 through 4.0, check if
the constant is available and then set the session key of the constant is found.

Tests:

- Change language in user edit page and see that it is persisted.

- After logout, the new language is still set.

- Changing language as anonymous user works.

- Run tests in stable, testing and unstable containers.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-20 08:15:58 -04:00
nbenedek
16ab0e4fc9
janus: improve description about coturn
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[james: Remove space]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-18 10:40:26 -04:00
schiriki
7028e3d022
Add char field to set a password that is required to join the server
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[james: Apply yapf formatting]
[james: Minor adjustment to help text]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-18 10:26:51 -04:00
109247019824
a7c9248200
Translated using Weblate (Bulgarian)
Currently translated at 24.2% (351 of 1447 strings)
2022-06-17 21:15:38 +02:00
Coucouf
1599bacfb0
Translated using Weblate (French)
Currently translated at 99.5% (1440 of 1447 strings)
2022-06-17 21:15:37 +02:00
Nikita Epifanov
51a68e7651
Translated using Weblate (Russian)
Currently translated at 99.7% (1444 of 1447 strings)
2022-06-13 14:19:14 +02:00
109247019824
159e42e26b
Translated using Weblate (Bulgarian)
Currently translated at 21.5% (312 of 1447 strings)
2022-06-08 18:16:52 +02:00
Jiří Podhorecký
be585b7aec
Translated using Weblate (Czech)
Currently translated at 100.0% (1447 of 1447 strings)
2022-06-08 18:16:33 +02:00
Eric
56d65c6ecc
Translated using Weblate (Chinese (Simplified))
Currently translated at 69.7% (1009 of 1447 strings)
2022-06-08 18:16:32 +02:00
Burak Yavuz
6ced4d4cfa
Translated using Weblate (Turkish)
Currently translated at 100.0% (1447 of 1447 strings)
2022-06-08 18:16:31 +02:00
ikmaak
2a0e90dec6
Translated using Weblate (Dutch)
Currently translated at 100.0% (1447 of 1447 strings)
2022-06-08 18:16:31 +02:00
ikmaak
cff28ee4b8
Translated using Weblate (German)
Currently translated at 100.0% (1447 of 1447 strings)
2022-06-08 18:16:30 +02:00
James Valleroy
fef8bfaf8c
Release v22.13 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.13
2022-06-06 22:00:28 -04:00
James Valleroy
f092da6b04
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-06 21:58:53 -04:00
James Valleroy
39a83b7e0b
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-06 21:09:40 -04:00
Sunil Mohan Adapa
086b805c2b
email: Make app available for all users (even without advanced flag)
- Discussed during progress call.

- More testing has happened on the app since making it available.

- Will document difficulties with setting up domain name and ISP outgoing
traffic on port 25.

Tests:

- App is available without the advance flag.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-06 20:55:06 -04:00
Sunil Mohan Adapa
8e5d126b67
email: Add description about ISP and domain limitations
As discussed during progress calls, this is a pre-condition for making the app
generally available (without advanced flag).

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-06 20:54:57 -04:00
James Valleroy
b7a1d4bf8f
janus: Add new app for lightweight WebRTC server
- Add basic video room based on demo.

- Set port range to use for RTP.

- coturn: Add component for time-limited TURN configuration.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Don't error out when coturn is not installed/configured]
[sunil: Prepend data- to custom attribute in HTML]
[sunil: Convert SVG with embedded bitmap to vector graphics]
[sunil: Hide Javascript license information in footer]
[sunil: Minor changes to comments for styling]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 17:42:41 -07:00
Sunil Mohan Adapa
4e5835f92a
wordpress: tests: Fix writing title for new post in newer versions
Newer versions of wordpress after Bullseye seem to have a different HTML
structure for the title element. Make the functional tests work for the new
structure as well as the old one.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 12:17:25 -07:00
James Valleroy
90cef6e95c
wordpress: tests: Continue past language selection screen
Tests: Functional tests for wordpress pass on stable container.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: Make language selection presence optional]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 11:16:47 -07:00
Joseph Nuthalapati
629ca17ac2
tests: functional: Add jobs for bullseye-backports
- Added an additional build job called 'build-backports'
- Added a separate stage for functional tests in order to avoid
  depending on multiple jobs
- Improved readability of long commands in YAML files
- Depending on GitLab username 'weblate' instead of a RE2 regexp (untested)
- Increased job timeout to 2h 30m

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-06-06 10:21:00 -07:00
Nikita Epifanov
de292d0dcd
Translated using Weblate (Russian)
Currently translated at 99.6% (1432 of 1437 strings)
2022-06-03 22:18:04 +02:00
Kolja Gorter
561ba00f18
Add function to change root chanel name of mumble server
Show the current name of the root channel

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
[james: Use augeas for config file operations]
[james: Pass channel name on command line]
[james: Add functional test for change root channel name]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-03 10:03:51 -04:00
Sunil Mohan Adapa
411f42edb2
wordpress: Allow installing/updating plugins and themes
Based on work by Benedek Nagy at:
https://salsa.debian.org/freedombox-team/freedombox/-/merge_requests/2198

Tests:

- Install WordPress without this patch. Then switch to code with this patch.
Restart FreedomBox. WordPress setup should get executed and the setup version
should get incremented to 2. The configuration file should contain the include
line for freedombox-static.php. freedombox-static.php should be installed and
should contain the line for setting FS_METHOD to 'direct'.

- Uninstall WordPress and wipe everything. Install WordPress freshly using this
patch. The line to include freedombox-static.php should be present in the
default configuration file. freedombox-static.php should be installed and should
contain the line for setting FS_METHOD to 'direct'.

- Installing a new theme using a URL and setting the default theme to the new
theme should work.

- Installing a plugin and enabling it should work.

- Installing an older version of a plugin and then updating it should work.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-01 10:26:56 -04:00
Jiří Podhorecký
25cab067d7
Translated using Weblate (Czech)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-31 16:18:52 +02:00
109247019824
3ebc740945
Translated using Weblate (Bulgarian)
Currently translated at 17.5% (252 of 1437 strings)
2022-05-29 16:14:36 +02:00
Michael Breidenbach
ac3b9e1cb1
Translated using Weblate (Swedish)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-27 19:17:01 +02:00
Joseph Nuthalapati
f86ed032a3
tests: functional: Integrate into Salsa CI
Functional tests are run in parallel on Debian testing and Debian
unstable using the latest freedombox package built in the pipeline.

Commits by Weblate are ignored.

Fixes freedombox-team/infrastructure#34
Closes freedombox-team/infrastructure!48

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-26 12:28:17 -07:00
Benedek Nagy
b6d3e21608
transmission: Add redirects to avoid 409 conflict
Tests:

- Inside container, run 'curl http://localhost/transmission/' and 'curl
http://localhost/transmission/web'. Notice that '409 Conflict' errors are
thrown.

- Apply the patch, run ./setup.py install and restart apache. Run the curl
commands again and this time, they lead to 302 redirects instead.

[sunil]: Update comment and make the redirect temporary.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Tested-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-25 15:46:55 -07:00
109247019824
b4271069a1
Translated using Weblate (Bulgarian)
Currently translated at 17.4% (251 of 1437 strings)
2022-05-24 17:49:13 +02:00
Eric
b15bf30070
Translated using Weblate (Chinese (Simplified))
Currently translated at 70.1% (1008 of 1437 strings)
2022-05-24 17:49:13 +02:00
Burak Yavuz
ed53cefd66
Translated using Weblate (Turkish)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:12 +02:00
ikmaak
cf79325a05
Translated using Weblate (Dutch)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:12 +02:00
ikmaak
4180b51054
Translated using Weblate (German)
Currently translated at 100.0% (1437 of 1437 strings)
2022-05-24 17:49:11 +02:00
D āvis
8875b3ecab
Added translation using Weblate (Latvian) 2022-05-24 17:48:59 +02:00
James Valleroy
0aead35ea8
Release v22.12 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.12
2022-05-23 20:48:48 -04:00
James Valleroy
dd6c424217
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 20:47:46 -04:00
James Valleroy
530dd01639
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-23 20:27:23 -04:00