Commit graph

132 commits

Author SHA1 Message Date
yunohost-bot
c4439110e1 [CI] Format code 2021-02-02 03:37:40 +00:00
Alexandre Aubin
c091559e7b
Merge pull request #1077 from YunoHost/return-additional-error-data-to-api
Support more complex errors (be able to return additional data in a json structure)
2021-01-23 16:05:54 +01:00
Alexandre Aubin
b53859db50 [fix] python3: fix yunopaste encoding 2021-01-21 21:23:57 +01:00
Alexandre Aubin
b98dd8585b
Merge pull request #1116 from YunoHost/enh-python3
Python2 -> Python3
2021-01-19 23:06:57 +01:00
Alexandre Aubin
c43a51ba30
Merge branch 'dev' into enh-python3 2021-01-10 18:31:19 +01:00
Saxodwarf
bca527aca5 Add the -F flag to prevent grep from using the user password as a regex pattern 2021-01-10 12:09:04 +01:00
Kay0u
239dc539a1
use read_yaml for json because lol 2021-01-06 16:34:55 +01:00
Alexandre Aubin
de126fcdce Don't allow failure for invalid python3 code + fix unsued variables 2021-01-02 20:43:39 +01:00
Alexandre Aubin
2b12b67847 python3: Add some list() where that sounds relevant 2021-01-02 19:48:44 +01:00
Alexandre Aubin
0434bd5dc2 cmp() doesn't exists anymore 2021-01-01 04:07:27 +01:00
Alexandre Aubin
5f0b1b7450 Encoding fixes 2021-01-01 04:06:09 +01:00
Kayou
e70f27b7ff
Update legacy.py 2020-12-29 22:48:10 +01:00
Kayou
d6d75c528e
fix legacy permission migration 2020-12-29 22:37:59 +01:00
Kay0u
c3e750a97a
add all_users in protected_urls 2020-12-11 16:29:10 +01:00
Kay0u
c823f5ffd5
indent ssow conf 2020-12-11 15:09:37 +01:00
Alexandre Aubin
bfecb8b7dc Support more complex errors (be able to return additional data in a json structure) 2020-11-22 02:19:56 +01:00
Alexandre Aubin
3f8b922e92 Automatically translate legacy rules in /etc/ssowat/conf.json.persistent 2020-11-21 17:41:43 +01:00
Alexandre Aubin
7aa3ff5255 Added a .strip() to moulinette's check_output because was tired of adding it all over the places 2020-10-31 18:58:19 +01:00
Alexandre Aubin
d4635f0eaa Fix i18n key IDs so that translators don't have to retranslate something already translated.. 2020-10-29 23:49:23 +01:00
Alexandre Aubin
e91f2de0dc Move 'label' migration to migrate_legacy_permission_settings in legacy.py, because the previous code could led to some inconsistencies when restoring apps backuped before the migration 2020-10-29 23:26:28 +01:00
Alexandre Aubin
e047b67b1d Move legacy permission setting migration to legacy.py 2020-10-29 23:16:27 +01:00
Alexandre Aubin
d5abc12b82 Many typo :| 2020-09-30 18:18:39 +02:00
Alexandre Aubin
950dbc6b46
Merge pull request #935 from YunoHost/remove_legacy_settings
Remove legacy settings
2020-09-30 17:06:08 +02:00
Alexandre Aubin
2b4e14cca7 Hardcode some permission labels for non-trivial legacy permissions 2020-09-24 21:46:33 +02:00
Alexandre Aubin
83585b2375
Merge branch 'dev' into permission_protection 2020-09-08 17:06:49 +02:00
Alexandre Aubin
ecbd63636b autopep8 --in-place -a -a -a -a -a -r data/ doc/ tests/ src/yunohost/tests/ src/yunohost/utils/ src/yunohost/data_migrations/ 2020-09-03 17:36:59 +02:00
Alexandre Aubin
fa19c9480c Cleanup unused imports / misc 'fatal' flake8 errors 2020-09-03 17:01:24 +02:00
Josué Tille
e6da35abd1
Merge branch 'dev' into permission_protection 2020-08-23 21:48:18 +02:00
Alexandre Aubin
fa5130a7fc [cleanup] Move migration 0011 code to legacy.py 2020-07-27 19:23:07 +02:00
Alexandre Aubin
e7a4b26af8
Also propagate to utils/network.py because we like to maintain duplicated code ;P 2020-05-21 18:01:14 +02:00
Alexandre Aubin
09d8500fda Also run dpkg --audit to check if dpkg is in a broken state 2020-05-13 16:38:27 +02:00
Alexandre Aubin
d8dfa1c5d5
We gotta trash the error stream because gzip complains about broken pipe when ran in python subprocess ~.~ 2020-05-09 15:58:40 +02:00
Alexandre Aubin
6434fad965
Merge pull request #975 from YunoHost/auto-restart-ldap
[fix] handle new auto restart of ldap in moulinette
2020-05-07 22:18:18 +02:00
Alexandre Aubin
8bcf753081 Also split + and - 2020-05-07 18:34:51 +02:00
Laurent Peuch
82c4357421 [fix] handle new auto restart of ldap in moulinette 2020-05-04 14:00:22 +02:00
Alexandre Aubin
9c0ccd0b4f That whole thing about Specifier is completely overengineered, let's have a more simple check for version requirements... 2020-05-03 19:46:21 +02:00
Alexandre Aubin
fc07468051 Simplify / optimize reading version of yunohost packages... 2020-05-02 06:08:54 +02:00
Alexandre Aubin
e85a29fbf3
Typo zblerg ~.~ 2020-05-02 02:34:28 +02:00
Alexandre Aubin
6bd7eb64bd Assert slapd is running to avoid miserably crashing with weird ldap errors 2020-05-01 17:53:07 +02:00
ljf
65d54ba6b9 [fix] Blacklist false positive 2020-04-30 17:16:20 +02:00
Alexandre Aubin
822c731086 Improve default IPv6 route check to cover stuff happening on internet cube 2020-04-29 21:48:22 +02:00
Alexandre Aubin
426d93825d Add a tip about not having IPv6 2020-04-29 19:20:54 +02:00
Alexandre Aubin
d8c2f436f9
Merge branch 'stretch-unstable' into misc-optimizations 2020-04-29 18:14:05 +02:00
Alexandre Aubin
17d3ec5ad3 Improve new dig() helper, and use it in dnsrecords diagnosis as well 2020-04-27 17:30:17 +02:00
ljf
c6c85556ac [fix] False positive on blacklist due to search in resovconf 2020-04-27 17:30:17 +02:00
Alexandre Aubin
b90155423d Add a caching mechanism to get_public_ip to avoid loading requests and calling ip.yunohost.org dozens of time per minute... 2020-04-25 04:33:08 +02:00
Alexandre Aubin
b392efdf85 Also anonymize folder name containing %2e instead of dot 2020-04-21 02:42:46 +02:00
Alexandre Aubin
61ef67252e Don't contact ip6.yunohost if we can know right away that there's no IPv6 at all on the system 2020-04-17 19:38:46 +02:00
Alexandre Aubin
2215786d6e Attempt to anonymize data pasted to paste.yunohost.org (in particular domain names) 2020-03-22 01:24:38 +01:00
Alexandre Aubin
9e9215cc78 Simpler LDAP configuration 2019-11-19 14:48:48 +01:00