7477 Commits

Author SHA1 Message Date
Benedek Nagy
10fb0cae74
tt-rss: Fix description about user access
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-10 14:02:51 -07:00
Benedek Nagy
1dcfa06dd8
mediawiki: Serve hidden service over http for .onion domains
[sunil: rename the form field variable]
[sunil: rename the parater to get/set_server_url functions]
[sunil: remove unused PrependWidget, can be added back later]
[sunil: update functional tests]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-05-10 12:43:43 -07:00
Benedek Nagy
b3d5d68448
mediawiki: Add stricter sandbox rules for jobrunner service
Tests:

- Run ./setup.py install and check that 'systemctl daemon-reload; systemctl show
mediawiki-jobrunner.service' shows the required sandbox changes.

- Tested a few MediaWiki jobs. See:
https://salsa.debian.org/freedombox-team/freedombox/-/issues/299#note_306788

[sunil: Relax the restrictions on read/write paths and networking]
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-10 11:07:08 -07:00
James Valleroy
b8ea881938
Release v22.11 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.11
2022-05-09 22:36:23 -04:00
James Valleroy
648541f5a3
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 22:35:40 -04:00
James Valleroy
dae719fd44
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 22:13:33 -04:00
109247019824
5b059b4581
Translated using Weblate (Bulgarian)
Currently translated at 15.3% (220 of 1436 strings)
2022-05-10 04:10:38 +02:00
ikmaak
3d72066421
Translated using Weblate (Hungarian)
Currently translated at 99.8% (1434 of 1436 strings)
2022-05-10 04:10:38 +02:00
ikmaak
e26eb33611
Translated using Weblate (Ukrainian)
Currently translated at 82.5% (1186 of 1436 strings)
2022-05-10 04:10:37 +02:00
ikmaak
19e7727302
Translated using Weblate (Polish)
Currently translated at 32.4% (466 of 1436 strings)
2022-05-10 04:10:37 +02:00
ikmaak
a827fe4bba
Translated using Weblate (Danish)
Currently translated at 42.8% (615 of 1436 strings)
2022-05-10 04:10:36 +02:00
Sunil Mohan Adapa
bf02dfb38c
matrixsynapse: Allow new dependencies to be installed from backports
Closes: #2215.

- matrix-synapse >= 1.55.0-2 requires python3-jinja2 >= 3.0~

- python3-jinja2 >= 3.0~ requires python3-markupsafe >= 2.0

Tests:

- On a stable container, matrixsynapse app is not installable.

- With the changes, start FreedomBox service, setup will run on the upgrades
module and /etc/apt/preferences.d/51freedombox-apps.conf will be changed to
include the two new entries. After this, matrix-synapse app is installable.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 21:49:26 -04:00
Sunil Mohan Adapa
8b7ca439ff
mediawiki: Handle password rejection from MediaWiki
Closes: #2063.

When admin password is being set in MediaWiki, if the password is found in the common
list of passwords, MediaWiki will fail instead of setting the password. Detect
this case and show an error instead of a hard server.

Tests:

- Setting the admin password to 'passwordpassword' fails due to check in common
passwords list. A message is shown that strong password is needed instead of a
500 error page.

- Set the password to 'passwordpassword' and update other settings. Settings are
updated with success message but password update fails with error message.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 21:44:37 -04:00
Benedek Nagy
8875bc32ae
mediawiki: Check if admin password is at least 10 characters long
Sunil: Current passwords policies as of MediaWiki 1.35.6 do not require capital
letter and numeral. Add comment that the password can't be common one.

Tests:

- Set the admin password to 'testingtesting'. Update should be successful.

[sunil: Fix typos]
[sunil: Drop checking for capital letter and numeral in password]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 21:44:32 -04:00
Sunil Mohan Adapa
7e761c91ea
email: Fix userdb lookups with LDAP
Without the base attribute set, LDAP search returns no results and because of
the lookup failure LMTP will not be able to deliver message even though postfix
has successfully received the messages.

Tests:

- On a fresh container, send a message to a local user using roundcube. The user
should receive the message successfully.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-05-09 21:06:56 -04:00
Coucouf
6b96c82283
Translated using Weblate (French)
Currently translated at 100.0% (1436 of 1436 strings)
2022-05-04 15:16:00 +02:00
109247019824
e3878e1c04
Translated using Weblate (Bulgarian)
Currently translated at 14.0% (202 of 1436 strings)
2022-05-01 22:13:18 +02:00
Andrij Mizyk
482b40f831
Translated using Weblate (Ukrainian)
Currently translated at 82.5% (1185 of 1436 strings)
2022-05-01 22:13:17 +02:00
Sunil Mohan Adapa
c10b10aa31
container: Show executed commands when setting up/running tests
- This allows the user to understand the wrapper script and skip/adapt it when
necessary.

- Debug any issues with the script.

- Maintain consistency with the philosophy of the rest of the container script.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-30 12:11:38 -07:00
Joseph Nuthalapati
675dfb9444
HACKING: Improve documentation on how to run tests
- Added a separate command to run unit tests only
- Clarified the fact that the application should be started before
  running functional tests
- Add one troubleshooting tip

Reviewed-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-30 12:11:35 -07:00
Joseph Nuthalapati
ca8c5bba4c
tests: functional: Get rid of dependency on xvfb
This removes the dependencies xvfb and pytest-xvfb.

--splinter-headless can be used as a substitute for running tests in
headless mode.

[sunil: Edit description as running run-tests starts plinth in container]
[sunil: Retain the xauth command]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-30 12:09:53 -07:00
Petter Reinholdtsen
e070fed8e8
Translated using Weblate (Norwegian Bokmål)
Currently translated at 80.4% (1155 of 1436 strings)
2022-04-29 22:11:53 +02:00
Benedek Nagy
3267a05963
transmission: Improve description
Closes: #952.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-29 09:38:12 -07:00
Nikita Epifanov
968393d084
Translated using Weblate (Russian)
Currently translated at 99.8% (1434 of 1436 strings)
2022-04-28 21:09:37 +02:00
Veiko Aasa
78a2b26132
samba: Fix functional tests when user is not logged in at start
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-26 11:19:29 -07:00
James Valleroy
470b3cb9cd
Release v22.10 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.10
2022-04-25 20:48:13 -04:00
James Valleroy
f7b08fb616
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-25 20:46:49 -04:00
ikmaak
81615c5a3e
Translated using Weblate (Dutch)
Currently translated at 100.0% (1436 of 1436 strings)
2022-04-26 02:11:51 +02:00
ikmaak
43bbee3a62
Translated using Weblate (German)
Currently translated at 99.9% (1435 of 1436 strings)
2022-04-26 02:11:50 +02:00
Sunil Mohan Adapa
59d7721682
sharing: Allow double quotes in path strings
Unix paths can contain double quotes. Allow entering paths with double quotes by
escaping them in c-style[1] and retrieve them back properly.

1) https://httpd.apache.org/docs/2.4/expr.html

Tests:

Run tests on with various paths:

- /var/a b

- /var/c"d

- /var/ef"

Run the following tests.

- Create a directory with the test path and create a sample file inside it.

- Add a share with the test path.

- Ensure that the share is accessible and the file can be downloaded.

- Ensure that the list of the shares shows the path correctly.

- Ensure that the share can be edited.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-25 15:21:55 -07:00
Benedek Nagy
0b2125aad6
sharing: put file path between quotation marks
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-25 15:21:45 -07:00
Giannis
e8b224982f
Translated using Weblate (Greek)
Currently translated at 68.3% (981 of 1436 strings)
2022-04-21 11:08:08 +02:00
109247019824
05818f6eda
Translated using Weblate (Bulgarian)
Currently translated at 13.9% (201 of 1436 strings)
2022-04-21 11:08:07 +02:00
Jiří Podhorecký
1255496bbb
Translated using Weblate (Czech)
Currently translated at 100.0% (1436 of 1436 strings)
2022-04-21 11:08:07 +02:00
Luna Jernberg
e912238897
Translated using Weblate (Swedish)
Currently translated at 99.5% (1430 of 1436 strings)
2022-04-21 11:08:06 +02:00
Burak Yavuz
6bff13bc46
Translated using Weblate (Turkish)
Currently translated at 100.0% (1436 of 1436 strings)
2022-04-21 11:08:06 +02:00
James Valleroy
7b0cef1929
Merge remote-tracking branch 'freedombox-team/master'
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-17 11:59:09 -04:00
Nikita Epifanov
6159955792
Translated using Weblate (Russian)
Currently translated at 99.8% (1432 of 1434 strings)
2022-04-16 12:09:07 +02:00
James Valleroy
3653a09437
Release v22.9 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v22.9
2022-04-11 21:18:48 -04:00
James Valleroy
5fde3d0e90
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-11 21:07:03 -04:00
James Valleroy
01a6265d07
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-11 19:53:16 -04:00
James Valleroy
f1bbfa73c7
upgrades: Split Explanation line
Avoids a flake8 error.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-11 19:50:54 -04:00
Aurélien Couderc
37d066e285
Fix description of the validation rule for calibre library names so it actually matches the pattern 2022-04-10 14:05:21 -07:00
James Valleroy
d21e33268d
upgrades: Use python3-typing-extensions from bullseye-backports
Fixes #2207.

Tests:

- /etc/apt/preferences.d/51freedombox-apps.pref has expected content.

- Matrix Synapse can be installed, functional tests pass.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-10 14:02:40 -07:00
Benedek Nagy
2b37ee1ad6
plinth: Add forum to footer
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2022-04-10 13:57:09 -07:00
Sunil Mohan Adapa
2752cf55d3
package: Update package expression API and fix regressions
- Make terminology more consistent managed vs. possible, resolve vs. actual.

- Fix regression in security report caused by comparing package expressions with
package names.

- Fix regression in package upgrades caused by comparing package expressions
with package names.

- Update API method names to improve readability and prevent accidental
mismatching of package names and package expressions. Update variable names for
same reason during usage.

Tests:

- minetest install successfully in testing.

- Security report shows non-zero value in the current vulnerabilities column.

- When an unavailable package is added to list of packages in an app, the app
can't be installed.

- When PackageOr expressions is added to an essential package, running
  --list-dependencies shows an expressions with '|' in it.

- Unit tests succeed.

- Find a package with conffile prompt and add that to list of a packages in an
app like bepasty and implement a stub force_upgrade() method in the app. Run
'apt update' and that triggers and analysis of packages with conf file prompts.
This should call force_upgrade() method in bepasty and with proper argument for
list of packages.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-10 09:51:13 -04:00
James Valleroy
2537ffd64c
package: Fix comment and type annotations
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-10 08:29:35 -04:00
James Valleroy
93156fe8e7
minetest: Allow alternate name for 3d armor mod
In Bookworm, the minetest-mod-player-3d-armor package is renamed to
minetest-mod-3d-armor. Allow either package name to fulfill the
requirement, so that the app is installable in both Bullseye and
Bookworm.

Fixes #2164.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-10 08:29:34 -04:00
James Valleroy
691817477f
package: Fail diagnostic when not able to resolve
When a package expression cannot be resolved (i.e. not installable),
add a diagnostic failure result with appropriate message.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-10 08:29:34 -04:00
James Valleroy
45820fbdfa
package: Use package expressions in Packages component
- managed_packages() finds all possible packages that could be
  installed. This is used for the check in the action script.

- resolve() finds actual packages to be installed. This is used in
  setup, diagnose, and has_unavailable_packages.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2022-04-10 08:29:34 -04:00