Commit Graph
6198 Commits
Author SHA1 Message Date
Sunil Mohan Adapa d45cc00981 openvpn: Don't show running status on download profile button
The running status prevents the user from downloading the profile a second time.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-01-02 13:53:20 +02:00
Sunil Mohan Adapa cc8c0cb05d backups: Don't open a new window for downloading backups
Opening a new window is simply unnecessary.

Tests:

- Clicking the link will result in immediate download in Chrome without
navigating away from the page.

- Clicking the link will result in download prompt in Firefox without navigating
away from the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-01-02 13:53:14 +02:00
Sunil Mohan Adapa 1cf0748a49 apache2: Allow downloads in openvpn and backups with latest browsers
Closes: #2002.

Entire FreedomBox UI is served within a sandbox that is originally meant for
cross-site iframes.

A newly introduced flag allow-downloads is required to trigger downloads. Two
instances where this is used in FreedomBox is openvpn profiled download and
backup download. Firefox 81 and Chrome 83 implement this flag.

Add 'allow-downloads' to sandbox directives to fix this.

References:

- https://github.com/whatwg/html/pull/4293
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
- https://bugzilla.mozilla.org/show_bug.cgi?id=1558394
- https://www.chromestatus.com/feature/5706745674465280

Tests:

- Check that OpenVPN profile can be downloaded.
- Check that backups can be downloaded.
- Check on Firefox 78 and Chromium 83.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2021-01-02 13:52:59 +02:00
Johannes Keyser d8cd3ee5fe Translated using Weblate (German)
Currently translated at 100.0% (1418 of 1418 strings)
2021-01-01 15:29:17 +01:00
ullli 269936ff14 mumble: Updated mumla and removed plumble from clients list
- Added mumla play-store link
- Removed pumble entry and plumble var

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-31 17:15:51 -08:00
Veiko Aasa aa54421216 ejabberd: functional tests: Wait until the jsxc buddy list is loaded
Fixes #1894

Tests performed:
- All the ejabberd tests pass on both Debian testing and stable

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-31 17:01:52 -08:00
Veiko Aasa 1ea6b0b176 functional tests: Make tests compatible with pytest-bdd v4.0
- In pytest-bdd v4.0, given steps are no longer fixtures. Mark steps
  as fixtures when needed.
- Remove 'test_' prefix from step function names, so that pytest doesn't
  run those twice.

Test performed:
- Run all tests, no more pytest-bdd v4.0 related failures
- All the openvpn, snapshot and users module tests pass

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-31 15:41:40 -08:00
Doma Gergő 0a10d02605 Translated using Weblate (Hungarian)
Currently translated at 90.6% (1285 of 1418 strings)
2020-12-31 03:29:42 +01:00
Burak Yavuz dd6938df9d Translated using Weblate (Turkish)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-31 03:29:42 +01:00
ikmaak fd49f27338 Translated using Weblate (Dutch)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-31 03:29:41 +01:00
ikmaak 95b1c61a96 Translated using Weblate (German)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-31 03:29:41 +01:00
Dietmar 32c53e347a Translated using Weblate (German)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-31 03:29:40 +01:00
James Valleroy da4ab1bc8b Release v20.21 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v20.21
2020-12-28 21:09:18 -05:00
James Valleroy 92c9ba21ac debian: Bump standards version to 4.5.1
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-28 21:08:14 -05:00
James Valleroy f15a6f8d55 doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-28 20:50:46 -05:00
James Valleroy 48c8a8fd29 locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-28 20:12:06 -05:00
Doma Gergő d94af183e7 Translated using Weblate (Hungarian)
Currently translated at 88.7% (1259 of 1418 strings)
2020-12-29 02:10:05 +01:00
n0nie4HP c46696ad0a Translated using Weblate (Polish)
Currently translated at 34.0% (483 of 1418 strings)
2020-12-29 02:10:03 +01:00
ikmaak 6f2e6f3373 Translated using Weblate (Polish)
Currently translated at 34.0% (483 of 1418 strings)
2020-12-29 02:10:03 +01:00
Nikita Epifanov cb8a7df4a7 Translated using Weblate (Russian)
Currently translated at 95.4% (1354 of 1418 strings)
2020-12-29 02:10:02 +01:00
James Valleroy 30a0e69548 upgrades: Update searx search engines during dist upgrade
Flush stdout after printing debug info.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-28 10:48:45 -08:00
James Valleroy 092c7e70d1 upgrades: Allow grub-pc upgrade without reinstalling grub
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-28 10:48:38 -08:00
Veiko Aasa 6665052fe8 security: Fix access denied for user daemon from cron
When 'restrict console logins' is activated, debsecan hourly cron jobs fail
because the 'daemon' user is not allowed to run cron jobs. Add rule to the
login access control file to allow 'daemon' user to run cron jobs.

Fixes #1770

Tested that after I copied the file to /etc/security/access.d/10freedombox-security.conf,
there are no more debsecan cron job errors in the journalctl logs.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Fioddor Superconcentrado <fioddor@gmail.com>
2020-12-28 15:46:37 +01:00
spectral 79acc9b918 calibre: Fix manual page name
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-26 13:47:53 -05:00
Veiko Aasa 0255058656 users: Remove timeout when creating Samba user
Fixes #2000

Tests performed:
- All the users module tests pass
- Create a user, add the user to the freedombox-share group,
check that the user can connect to the Samba Group share.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-26 12:59:08 -05:00
n0nie4HP 1101674cf3 Translated using Weblate (Polish)
Currently translated at 28.1% (399 of 1418 strings)
2020-12-26 16:29:15 +01:00
Veiko Aasa 5f3643cc24 apache: Create snake oil certificate if not exists
When FreedomBox package is installed on a fresh Debian machine where a
snakeoil certificate doesn't exist, generate a new one.

Fixes #1923
Fixes #1999

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[Veiko: Made added code comment more precise]
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-26 10:18:14 +02:00
Michael Breidenbach 327e76220b Translated using Weblate (Swedish)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-24 18:29:15 +01:00
Fioddor Superconcentrado 9dcf87f1a4 Translated using Weblate (Spanish)
Currently translated at 99.9% (1417 of 1418 strings)
2020-12-24 18:29:15 +01:00
Joseph Nuthalapati 8085879643 deluge: Functional tests for bit-torrent group
Add tests to check that usage of Deluge is only permitted to users in
the group 'bit-torrent'.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-23 16:47:03 +02:00
Joseph Nuthalapati c975fb94e3 deluge: Sync apache2 config with Transmission
Use the same reverse proxy configuration as Transmission for Deluge.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-23 16:46:47 +02:00
Fioddor Superconcentrado 2a7fc709a4 Translated using Weblate (Spanish)
Currently translated at 99.9% (1417 of 1418 strings)
2020-12-21 15:41:17 +01:00
Johannes Keyser 75f4be83eb Translated using Weblate (German)
Currently translated at 100.0% (1418 of 1418 strings)
2020-12-21 12:29:32 +01:00
James Valleroy a73edb9f32 Release v20.20.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v20.20.1
2020-12-19 19:19:18 -05:00
James Valleroy 287f6560da doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-19 19:17:39 -05:00
Veiko Aasa 472590f6fc javascript: Fix disabled submit buttons when navigating back to a page
When navigating back to a page, enable buttons that were previously
**temporarily** disabled.

Closes #1996

Tested that on the manage snapshots page, when browsing to delete view
and then back, the "Create Snapshot" button is enabled.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-19 14:01:33 -08:00
James Valleroy c986bf8ff5 config: Skip homepage test on buildd (Closes: #977527)
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-19 13:50:20 -08:00
James Valleroy 925903e72b help: Update status log test
Check for either "Logs begin" (stable) or "Journal begins" (testing/unstable).

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2020-12-19 13:41:26 -08:00
James Valleroy f5b34704ee tests: Skip initial update
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 17:15:16 +02:00
Veiko Aasa 9a6fa83376 gitweb: Make functional tests compatible with pytest-bdd v4.0
In pytest-bdd v4.0, given steps are no longer fixtures.

- Make gitweb_repo_metadata a fixture.
- Remove errorneous fixture usage from the gitweb_repo_should_not_exist
  step (fixture gitweb_repo returned always None).

Tested that gitweb functional tests pass when using pytest v4.0.2

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-12-19 09:49:23 -05:00
Sunil Mohan Adapa e6a858f3fe ui: Fix warning button colors
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:54 +02:00
Sunil Mohan Adapa 6574ec2d44 apache2: Disallow all inline styling in sandbox settings
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:54 +02:00
Sunil Mohan Adapa 83c0adf6cf ui: Avoid inline styling for setting progress bar width
- attr() CSS function can't used practically on anything but the content
property.

- Introduce a hack for setting any arbitrary percentage width on an element
similar to w-25, w-50, w-75 and w-100 bootstrap utilities. This hack should not
be used widely.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:54 +02:00
Sunil Mohan Adapa 30aae90030 help: Show version information as an alert
- Move the message to the top as it is important and a likely reason to visit
the about page.

- Turn it into an alert so that it stands out from the rest of the text. Success
when up-to-date, warning otherwise.

- Remove custom inline styling.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:53 +02:00
Sunil Mohan Adapa a9ff7a4408 pagekite: Eliminate inline styling
- Use bootstrap utility instead.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:53 +02:00
Sunil Mohan Adapa c2cd8f50c2 firstboot: Use bootstrap for logo styling
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:53 +02:00
Sunil Mohan Adapa ae535268b2 ui: Use common styling to hide logo during firstboot
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:52 +02:00
Sunil Mohan Adapa 084921ac0d first_setup: Use template variable to refresh page
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:52 +02:00
Sunil Mohan Adapa 0e09d08d17 help: Split CSS styling into a separate file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:51 +02:00
Sunil Mohan Adapa ccefd98135 letsencrypt: Split CSS styling into a separate file
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 16:26:51 +02:00