5884 Commits

Author SHA1 Message Date
ikmaak
a6fccfd3df
Translated using Weblate (German)
Currently translated at 100.0% (1435 of 1435 strings)
2022-02-02 09:55:27 +01:00
James Valleroy
5cda94735c
Release v22.4 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 20:05:31 -05:00
James Valleroy
6fcc8dc8e2
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 19:24:34 -05:00
Sunil Mohan Adapa
14c6541dfb
email_server: Drop showing diagnostics/repair and roundcube config
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 18:46:04 -05:00
Sunil Mohan Adapa
affffddf36
roundcube: Add setting for local connection only
When this option is enabled, it would make the interface easy to work with. This
is likely what most users would want. Don't break things for users who have
already installed roundcube and ensure that local only is disable for them.

Tests:

- Install roundcube without the patch. Disable the app. Apply patch. Restart
service. Notice that roundcube is not re-enabled.

- Install roundcube without the patch. Apply patch. Restart service. Notice that
roundcube configuration /etc/roundcube/config.inc.php file has been updated and
include_once() at the end has been added. The file
/etc/roundcube/freedombox-config.php has been added. Local only option is
disabled.

- Install roundcube freshly with the patch. Local only option is enabled. Open
interface. Notice that server option is not presented.

- Disable local only option and notice that server field is shown in the
interface.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
[jvalleroy: Fix comment]
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 18:46:01 -05:00
Sunil Mohan Adapa
9a2d66c62f
email_server: Drop some unused code
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 18:45:56 -05:00
Sunil Mohan Adapa
136e70bbd0
users: Clarify help message for authorization password
Closes: #2081.

Tests:

- In the create user form, edit user form and change password form, the message
is shown as expected.

- The create user form, edit user form and change password form work as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 17:42:49 -05:00
Sunil Mohan Adapa
5ff7339c19
sso, users: Redirect to home page after logout
Closes: #2178.

- Don't bother with the redirection to the next page using the ?next= URL
parameter. Always redirect to the home (index) page.

- Show a message that logout was successful.

- Ensure that SSO cookie is removed.

Tests:

- Logout and notice that redirection has been performed to the home page.

- "Logged out successfully." message is shown.

- When logged as a user with a language set, logging out preserves the language
of the user who was just logged out.

- Login. Click logout while having browser developer tool open. Notice that
Logout request has SSO cookie. The response does not have the cookie set. The
next request is to the home page and it does not have SSO cookie in the request.

- Login to tt-rss app that needs SSO to work. Logout from FreedomBox interface
using another page. Refresh the tt-rss page and notice that user was logged out
and redirect to FreedomBox login page.

- Logout. Again, manually visit the URL
https://10.42.0.203/plinth/accounts/logout/. The page is still required to home
page and success is still shown even though the user is already logged out.

- Repeat the logout test as non-admin user.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 17:23:32 -05:00
Sunil Mohan Adapa
78d78d84a7
coturn: Use wildcard listening address to fix startup issues
Fixes: #2069.

Without a listening port, coturn will try to enumerate the non-local IP
addresses and try to listen on them. If coturn is started before network is
fully setup, it finds no usable IP addresses and fails. Furthermore, if IPs are
added to the system, it does not automatically listen on them.

A better approach as advised by systemd NetworkTarget documentation is to listen
on a wildcard address. This does not require network to be online and works well
for IP addresses being added/removed from the system. coturn is itself unable to
make changes to its default listening behavior for backward compatibility.

Tests:

- Freshly install coturn. Observe that listening-ip is properly set in the
configuration file. coturn is listening on 3478, 3479, 5349, 5350. coturn is
listening on ::1 and * addresses instead of individual IP addresses.

- Install coturn without the patch. Apply the patch and restart FreedomBox.
coturn setup will run. listening-ips get added to the configuration file. The
static-auth-secret is not changed from earlier. coturn will be restarted. coturn
is listening on 3478, 3479, 5349, 5350. coturn is listening on ::1 and *
addresses instead of individual IP addresses.

- Install coturn without the patch. Disable coturn. Apply the patch and restart
FreedomBox. coturn setup will run. coturn will not be enabled. coturn will be
running after setup.

- Functional tests pass.

- All ports able to connect using netcat (nc command) with IPv4 (-4 option) and
IPv6 (-6 option).

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-31 13:48:15 -05:00
Sunil Mohan Adapa
fc4a9183bd
snapshots: Clarify that snapshots are take during updates too
Closes: #1917.

Tests:

- The UI message got updated.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-30 22:24:37 -05:00
Sunil Mohan Adapa
09ba3892e8
wireguard: tests: Add functional tests
Add HTML classes to help with functional testing.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-30 17:27:38 -05:00
Sunil Mohan Adapa
5e4a0f0a38
cockpit: Explicitly redirect to HTTPS as needed for WebSockets
Cockpit uses WebSockets which won't work without HTTPS. For .onion domains, we
are not explicitly redirecting to HTTPS since TLS is not necessary. Ensure that
Cockpit continues to work with .onion domains by explicitly redirecting to
HTTPS.

Tests:

- Without the patch, on a normal/Onion domain run curl -kv
http://{DOMAIN}/_cockpit/. Redirection does not happen.

- With the patch, on a normal/Onion domain run curl -kv
http://{DOMAIN}/_cockpit/. Redirection happen to https:// occurs.

- Redirection is a with HTTP status code 302, the temporary redirection code.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-30 17:00:50 -05:00
Benedek Nagy
a1521e5d0a
Translated using Weblate (Hungarian)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-29 14:55:24 +01:00
Andrij Mizyk
ff266854f2
Translated using Weblate (Ukrainian)
Currently translated at 79.1% (1146 of 1447 strings)
2022-01-29 14:55:23 +01:00
Nikita Epifanov
bec034571b
Translated using Weblate (Russian)
Currently translated at 99.9% (1446 of 1447 strings)
2022-01-29 14:55:23 +01:00
Benedek Nagy
209da888cd
power: Add a link to power app in the system menu
Closes: #1817.

[sunil: Run isort and yapf]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-27 13:48:51 -08:00
Benedek Nagy
6ce3627a11
matrixsynapse: Add FluffyChat to client list
- Licensed under AGPL3, available on F-Droid.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-27 11:53:04 -08:00
Michael Breidenbach
afb53d3e4a
Translated using Weblate (Swedish)
Currently translated at 99.3% (1438 of 1447 strings)
2022-01-24 13:53:27 +01:00
James Valleroy
78b669d451
shaarli: Test adding a bookmark
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-22 23:59:37 -08:00
James Valleroy
a4a1f07683
shaarli: Add functional test
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-22 23:59:29 -08:00
James Valleroy
1450551332
shaarli: Add backup component
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-22 23:59:18 -08:00
109247019824
855875daaf
Translated using Weblate (Bulgarian)
Currently translated at 8.6% (125 of 1447 strings)
2022-01-22 22:55:33 +01:00
Coucouf
0bc9b837fe
Translated using Weblate (French)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-22 22:55:32 +01:00
Sunil Mohan Adapa
98cfa321cb
wordpress: tests: functional: Add missing marks on tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-22 13:15:22 -05:00
Sunil Mohan Adapa
668da20a02
mldonkey: Drop app not available in Debian Bullseye and Bookworm
Closes: #2157.

Original author of the app J. Carlos Romero <juancarlos.romero@gmail.com> has
been contacted to see if there is interest in continuing to maintain the app.
There has been no response.

Since the app is not available even in the current stable (Bullseye), few users
are presumably using it on a supported FreedomBox distribution. Any users are
advised to maintain the manually instead of relying on FreedomBox for it.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-22 11:55:34 -05:00
Benedek Nagy
44bff730f3
shaarli: Add android app to description
[sunil: Fix typo, indentation and add module comment]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-20 10:38:50 -08:00
ikmaak
d355f727c3
Translated using Weblate (Dutch)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-19 10:56:31 +01:00
ikmaak
1c2796b571
Translated using Weblate (German)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-19 10:56:31 +01:00
James Valleroy
8a9093e045
Release v22.3 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-17 20:18:28 -05:00
Sunil Mohan Adapa
2e2a9db195
help: tests: Fix functional test to check for status logs
Fixes: #2171.

Since systemd version 250, journalctl does not print the header line '-- Journal
begins... --'. To accommodate those changes, read the status log lines
accurately and check that they are not empty.

Tests:

- Run help functional tests on stable, testing and unstable.

- Modify code to not print status logs and notice that the functional test
fails.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-17 11:15:59 -05:00
Sunil Mohan Adapa
ec3236d89c
tests: functional: Fix setting domain name with active notifications
Looking for .btn-primary could yield two results when a notification is active
with an action button of type primary. This results in form not getting
submitted properly and test failing with wait timeout. Fix this by making the
lookup for submit button more specific.

Tests:

- Run matrix-synapse functional tests on a fresh container.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-17 11:00:13 -05:00
Sunil Mohan Adapa
01e2896724
upgrades: Allow matrix's new dependency to be installed
matrix-synapse 1.47.0-2 requires python3-frozendict 1.2-3 or higher. This is
only available in bullseye-backports, testing and unstable but not bullseye.

Allow python3-frozendict to be installed from buster-backports. Further there is
no longer any need to allow packages from buster-backports (on the master
branch). So, drop all those.

Tests:

- On stable/testing, without matrix-synapse and its dependencies installed, run
matrix-synapse functional tests.

- On stable, with older version of matrix-synapse and python3-frozendict, run
unattened-upgrade and notice that matrix-synapse upgrades to latest version.

- Without this patch, run service. Notice the contents of
/etc/apt/preferences.d/51freedombox.pref. When this patch is applied and service
is restarted, upgrades app is setup again and the files contents will change as
expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-17 11:00:09 -05:00
Benedek Nagy
e0ce6d84c1
Translated using Weblate (Hungarian)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-16 23:55:36 +01:00
Sunil Mohan Adapa
895d8cffbc
sso: Adjust URL to CAPTCHA page needed by Django security fix
Fixes: #2170.

Starting with Django 2.2.25, re_path behavior has changed. When the regular
expression ends with a '$', a full match is performed with the regular
expression. This breaks the behavior of how we are currently matching the locked
URLs for CAPTCHA based login forms.

Tests:

- All tests are done on Debian stable with Django 2.2.25 and on Debian unstable
with Django 3.2.10.

- Go to home page, click on login link. Enter wrong password three times.
CAPTCHA page is show with URL ending with /locked. Type the correct password and
login will be successful.

- Install tt-rss. Logout. Go to /tt-rss/, redirection will happen to login page.
Enter wrong password three times. CAPTCHA page is show with URL ending with
/locked. Type the correct password and login will be successful.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-16 10:15:32 -05:00
Sunil Mohan Adapa
08eb54ad0f
sso: Add missing captcha/rate limiting on SSO login
Tests:

- Install tt-rss. Logout. Visit the /tt-rss link. We will be redirected to the
login page. Login with wrong password 3 times. CAPTCHA is shown. Login with
correct password. Login will be successful.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-16 10:15:28 -05:00
Jiří Podhorecký
41ebb5d687
Translated using Weblate (Czech)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-15 17:56:27 +01:00
Benedek Nagy
e662e091dd
tt-rss: Allow published articles to be publicly available
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-13 11:03:14 -08:00
Eric
d17c0c8b9c
Translated using Weblate (Chinese (Simplified))
Currently translated at 70.9% (1027 of 1447 strings)
2022-01-13 19:58:15 +01:00
Burak Yavuz
cd4dc9df14
Translated using Weblate (Turkish)
Currently translated at 100.0% (1447 of 1447 strings)
2022-01-13 19:58:14 +01:00
ikmaak
5dd6f2ce9f
Translated using Weblate (Dutch)
Currently translated at 99.8% (1445 of 1447 strings)
2022-01-13 19:58:14 +01:00
nautilusx
f9ea26ad66
Translated using Weblate (German)
Currently translated at 99.8% (1445 of 1447 strings)
2022-01-13 19:58:13 +01:00
James Valleroy
7addb9b5e2
Release v22.2 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-11 20:10:23 -05:00
James Valleroy
0ece4330ba
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-11 19:11:57 -05:00
Sunil Mohan Adapa
a7f3677c0e
ikiwiki: Initialize shortcuts during post-init setup
In CI tests, when running 'run --list-dependencies', init for ikiwiki fails with
the following error. Fix that.

Exception while running init for <module 'plinth.modules.ikiwiki' from '/builds//freedombox/plinth/modules/ikiwiki/__init__.py'>: Action must exist in action directory.
Traceback (most recent call last):
  File "/builds//freedombox/plinth/app.py", line 536, in _initialize_module
    module.app = app_class()
  File "/builds//freedombox/plinth/modules/ikiwiki/__init__.py", line 61, in __init__
    self.refresh_sites()
  File "/builds//freedombox/plinth/modules/ikiwiki/__init__.py", line 102, in refresh_sites
    sites = actions.run('ikiwiki', ['get-sites']).split('\n')
  File "/builds//freedombox/plinth/actions.py", line 95, in run
    return _run(action, options, input, run_in_background, False)
  File "/builds//freedombox/plinth/actions.py", line 147, in _run
    raise ValueError('Action must exist in action directory.')
ValueError: Action must exist in action directory.

Tests:

- Shortcuts for ikiwiki show up properly on the front page after FreedomBox
daemon is restarted.

- Salsa CI no longer show the above error during --list-dependencies.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-11 19:07:32 -05:00
Sunil Mohan Adapa
03a805888d
help: Fix failing setup when manual directory is not available
- It is reported on the mailing list that first setup operation on the help app
fails. The logs indicate that /usr/share/freedombox/manual directory is not
present on the system. Although this situation does not occur on a normal
installation, catch, log and ignore this error to be safe.

- Also ensure that this static files component is added in post_init so that
basic setup is not at all affected by it.

Tests:

- In the development directory, move doc/manual to doc/manual.bak. Observe that
the error message is printed during initialization but the process continues.

- With the manual directory properly restored, the full help manual is displayed
properly with images.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-01-11 17:52:25 -05:00
Benedek Nagy
335a7f92cc
networks: Fix reference to an option
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-10 14:29:36 -08:00
Benedek Nagy
2861482014
backups: Correct spelling of encryption protocols
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-10 14:29:32 -08:00
Benedek Nagy
79cdcbdb1b
i2p: Fix grammar in description
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-10 14:29:29 -08:00
Benedek Nagy
e79f0b5298
radicale: Update Thunderbird URLs
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-10 14:29:26 -08:00
Benedek Nagy
92c0c07052
mumble: Change description to include iOS client app
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-01-10 14:29:23 -08:00