4779 Commits

Author SHA1 Message Date
Joseph Nuthalapati
f475a94581
doc: Minor cosmetic changes
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:59 -04:00
Joseph Nuthalapati
004ba5b3ea
doc: Move build scripts into separate directory
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:57 -04:00
Joseph Nuthalapati
d67412220a
doc: Remove language code from title
This code currently works only by assuming that the language code is either 2 or
5 chars long. This is not entirely correct but works for now.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:54 -04:00
Joseph Nuthalapati
46b587196f
doc: Fix Unicode issues with the manual
docbook2html generates HTML4 documents and can't handle utf-8 input. It is quite
outdated. Switch to using stylesheets from docbook-xsl package instead.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil@medhas.org Remove intermediary file docbook.css]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:52 -04:00
Joseph Nuthalapati
853c056018
doc: Skip empty lines when piping to wget
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:49 -04:00
Joseph Nuthalapati
a036a4af5b
doc: Add directory for development documentation
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:46 -04:00
Sunil Mohan Adapa
6a6983f39e
storage: Use AppView and cleanup custom code
- Follow common code so that extending becomes easier.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:43 -04:00
Sunil Mohan Adapa
dd1884e8ab
config: Use AppView and cleanup custom code
- Follow common code so that extending becomes easier.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:40 -04:00
Joseph Nuthalapati
62115dcd1e
infinoted: Add missing manual page link
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-30 19:24:36 -04:00
Fioddor Superconcentrado
a2565906ca
d/po: Fix header comments
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-30 11:55:16 -07:00
Fioddor Superconcentrado
60b412990f
d/po/es: New translation file
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-30 11:54:58 -07:00
Sunil Mohan Adapa
92a5a11659
ssh: Fix flake8 failure by removing unused import
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-29 15:28:23 -07:00
Nektarios Katakis
ddb95752a8
ssh: Option for disabling password authentication
Closes: #572

[sunil: Reload instead of restart, fix i18n strings]
[sunil: Load augeas minimally, minor cosmetic fixes]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-29 14:50:46 -07:00
Veiko Aasa
caa336babc
gitweb: do not change working directory inside actions script
This is a good practice and maybe related to commit 83337e47

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-28 11:26:32 -07:00
Veiko Aasa
ba9869c030
gitweb: Validate repository name also in actions script
This prevents writing to an arbitrary directory if running actions script
as a root user.

- Included tests for invalid names

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Parametrize the test case]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-28 11:22:20 -07:00
Veiko Aasa
0b2d1265cb
gitweb: fix links that end with /HEAD
On the Gitweb site, links that end with /HEAD (for example menu links after
selecting 'tree' on the front page) are mistakenly redirected
to the git-http-backend cgi script and an empty page is shown to the user.

Modified Apache2 ScriptAliasMatch regex so that git-http-backend services get
redirected only if they immediately follow repository's name path component.
Links on Gitweb site have additional action component before /HEAD and those
will be handled by the gitweb cgi script.

The relevant git-http-backend source:
https://repo.or.cz/git/debian.git/blob/refs/tags/v2.20.1:/http-backend.c#l706

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-27 18:04:30 -07:00
Sunil Mohan Adapa
bb7890263b
setup: Don't include actions/__pycache__ during installation
Perhaps due to recent changes in distutils, the setup script fails during
install with an error that it is unable to copy actions/__pycache__. Don't
attempt to copy this directory.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-27 19:10:15 -04:00
Veiko Aasa
ea01ef6f80
gitweb: avoid global environment variables in Apache configuration
Closes #1671

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-27 12:07:22 -07:00
Sunil Mohan Adapa
ef5c2ab908
gitweb: Set proper access after restoration of a backup
Otherwise, if the backup contains public repos and state before backup is all
private repos, then gitweb interface is not available publicly after restore.
Similar case happens when all restore repos are private and state before that
contains a public repos.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-27 00:33:08 -07:00
Veiko Aasa
8694849701
gitweb: Add functional tests
- add eleven functional tests
- gitweb_configure.html template: add id to the repository list element
  to distinct it better.

Closes #1668

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 23:48:56 -07:00
Sunil Mohan Adapa
273c419a26
gitlab-ci: Fix path for HTML coverage report generation
This issue is caused by use of tmpdir fixture which forces the tests to run in a
temporary directory and HTML report to also get generated there.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 23:01:38 -07:00
Sunil Mohan Adapa
83337e4786
cfg: Fix test case failure due to incorrect path assumption
When tmpdir fixture is used, the tests run in a separate directory instead of
command execution directory. Any tests that take the current directory and
assume that it contains files will fail. Fix this by taking the path relative to
test module instead.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 22:07:52 -07:00
Veiko Aasa
c8eb5bb3ca
gitweb: Add tests for actions script
- add tests for create, edit and delete repository functions
- modify actions script to allow run actions without root privileges:
  - add argument --git-repo-root to overwrite the default root directory
    of repositories
  - add option --keep-ownership to the create-repo command to skip
    changing ownership to www-data
- actions script, repo-info command: instead of returning empty values,
  raise an error if the repository doesn't exist

Closes #1667

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Remove unneeded #! directive]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 21:27:28 -07:00
Thomas Vincent
314e30d034
backups: Fix a typo in backups upload form
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-26 17:55:21 -07:00
Allan Nordhøy
fa82a7ea72
Translated using Weblate (Norwegian Bokmål)
Currently translated at 95.9% (1056 of 1101 strings)
2019-10-26 19:53:28 +02:00
Mattias Münster
d09b485590
Translated using Weblate (Swedish)
Currently translated at 18.2% (200 of 1101 strings)
2019-10-26 19:53:27 +02:00
homycal
92790ff8d4
Translated using Weblate (French)
Currently translated at 76.0% (837 of 1101 strings)
2019-10-26 19:53:25 +02:00
Thomas Vincent
10ea3b2a58
Translated using Weblate (French)
Currently translated at 76.0% (837 of 1101 strings)
2019-10-26 19:53:24 +02:00
Fioddor Superconcentrado
221d1ee887
Translated using Weblate (Spanish)
Currently translated at 100.0% (1101 of 1101 strings)
2019-10-26 19:53:20 +02:00
Pavel Borecki
9133855cec
Translated using Weblate (Czech)
Currently translated at 98.8% (1088 of 1101 strings)
2019-10-26 19:53:17 +02:00
Sunil Mohan Adapa
b372a13b1e
debian: Remove plinth transitional package
Stop building plinth package.

This will spark removal of package from unstable as it will not be built for any
source package (NBS, "not built from source") by the "cruft-report" tool.
Eventually it will also be removed from testing as there are not dependencies on
it.

See: https://wiki.debian.org/ftpmaster_Removals

Removal from backports may require filing a ticket in RT.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-26 09:50:46 -04:00
Michael Breidenbach
b6ff4f9879
Translated using Weblate (German)
Currently translated at 100.0% (1101 of 1101 strings)
2019-10-25 19:27:00 +02:00
Fioddor Superconcentrado
a21f1f458c
Translated using Weblate (German)
Currently translated at 100.0% (1101 of 1101 strings)
2019-10-25 19:26:59 +02:00
Veiko Aasa
7c5837a13a
gitweb: Set correct access rights after enabling application
- after enabling application, do not enable Apache auth configuration
  if a public repository exist.

Closes #1669

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-22 11:44:49 -07:00
James Valleroy
d05facfe04
Release v19.19 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.19
2019-10-21 18:50:38 -04:00
James Valleroy
52d718b3e6
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-21 18:48:18 -04:00
James Valleroy
93bad8a55e
locale: Update translations strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-21 17:57:57 -04:00
Matthias Dellweg
ebd3af340c
quassel: Add let's encrypt component for certficiates
Signed-off-by: Matthias Dellweg <2500@gmx.de>
[sunil@medhas.org Implement set domain as superuser action to make it succeed]
[sunil@medhas.org Minor cosmetic changes]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-21 12:09:13 -07:00
Veiko Aasa
4c13ef24bb
gitweb: enable rename detection
Closes #1666

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
2019-10-21 10:41:58 -07:00
Veiko Aasa
98051751ff
gitweb: add help text for description and owner fields in the form
Closes #1665

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org cosmetic changes, isort]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-21 10:38:15 -07:00
Veiko Aasa
08b90f6830
gitweb: fix Windows Git client download link in manifest
Closes #1664

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-21 10:30:55 -07:00
Veiko Aasa
a17749ce3e
gitweb: update repository list where necessary
Closes #1663

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Add docstring to update_service_access method]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-21 10:26:11 -07:00
Allan Nordhøy
d01b04d218
Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.7% (1056 of 1070 strings)
2019-10-21 02:52:56 +02:00
Michael Breidenbach
7c4b840b96
Translated using Weblate (German)
Currently translated at 100.0% (1070 of 1070 strings)
2019-10-21 02:52:56 +02:00
Sunil Mohan Adapa
8a1a3a66f7
cosmetic: yapf formatting
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 11:54:15 -04:00
Sunil Mohan Adapa
f509dc54c1
ikiwiki: Remove extra create button when no wiki/blog is present
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 11:54:13 -04:00
Sunil Mohan Adapa
54cf2566d8
searx, app, translation, language-selection: Fix license header
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 11:54:10 -04:00
Veiko Aasa
b86f3ff675
users: reload Apache2 to flush LDAP cache after user operations
Fixes #1660

Signed-off-by: Veiko Aasa veiko17@disroot.org
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 11:50:36 -04:00
Sunil Mohan Adapa
054a3744d5
frontpage: Show shortcuts that public even if need a group
Closes: #1659.

When shortcuts have login_required=False and allow_groups set to a list of
groups, the current behavior for logged in users is to match for allowed_groups
even when login_required is False. Thus, for searx, when public mode is enabled
searx shortcut is not shown for logged in users who are not part of searx group.

Fix this by ignoring allowed_groups if login_required is False.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 11:38:37 -04:00
James Valleroy
91da0996a4
gitweb: Fix flake8 error
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-10-20 10:58:20 -04:00