Commit graph

4347 commits

Author SHA1 Message Date
Alexandre Aubin
f125a8a68c
Merge pull request #785 from YunoHost/moar-sanity-check-for-app-operations
[enh] Iteration on sanity / anomaly checks for app operations
2019-09-17 20:50:36 +02:00
Alexandre Aubin
8fc005cec5
Merge pull request #769 from YunoHost/stop_on_failed_app_upgrade
Stop on failed app upgrade
2019-09-17 20:50:12 +02:00
Allan Nordhøy
a2813bd774
Language reworked 2019-09-17 20:23:36 +02:00
Alexandre Aubin
875c570c6d Check if the upgrade got manually interrupted, c.f. same stuff in app_install 2019-09-16 00:13:41 +02:00
Alexandre Aubin
821a3ac4ff Draft tests to check that permissions are actually propagated and effective on the SSO 2019-09-15 18:53:25 +02:00
Alexandre Aubin
b2a26a64a7 Naively migrate legacy and classical unprotected_uris = / that sets the app as public 2019-09-15 18:33:31 +02:00
Alexandre Aubin
c4743398e6 Deprecate (un)protected_uris and _regex settings + more explicit deprecation warning for app_add/remove/clearaccess 2019-09-15 18:17:46 +02:00
Alexandre Aubin
8abfd2a6e6 Naive implementation of protected/unprotected inplementation using the visitors group 2019-09-15 17:58:41 +02:00
Alexandre Aubin
95a8dfa71c Simplify part of app_ssowatconf 2019-09-15 16:59:44 +02:00
Alexandre Aubin
cc59501b55 Naive implementation of visitors group (without any relation to the ssowat conf yet) 2019-09-15 16:59:34 +02:00
Alexandre Aubin
aa3687ba02 Small trick needed to be able to test chained app upgrades 2019-09-15 02:28:32 +02:00
Alexandre Aubin
a476deb7fb Tweak test conf for easier debugging 2019-09-15 02:28:32 +02:00
Alexandre Aubin
28c73cb336 Implement those remaining tests 2019-09-15 02:28:32 +02:00
Alexandre Aubin
799c68f1a8 Moar tests for apps breaking the system 2019-09-15 02:28:32 +02:00
Alexandre Aubin
3eb089ffc0 Add unit/functional tests for apps 2019-09-15 02:28:32 +02:00
Laurent Peuch
4882754221 [mod] stop apps upgrade if one upgrade fail 2019-09-15 02:27:15 +02:00
Alexandre Aubin
c530325e29 Properly handle the sanity checks right after upgrades (in combination with managing the regular error code...). This is similar to what's done for app_install 2019-09-15 02:22:36 +02:00
Alexandre Aubin
08ecace5ec Here we keep need to keep going and only display an error, otherwise the rest of the file ain't properly cleaned up 2019-09-15 02:21:26 +02:00
Alexandre Aubin
8e6ebd7979 Iteration on sanity checks for app operations 2019-09-15 02:20:01 +02:00
Alexandre Aubin
fc85ae0102 Key mismatch was causing an error + ended up reworking the sentence 2019-09-15 02:19:11 +02:00
Bram
ef38f5e7b5 [mod] typo
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2019-09-15 02:19:11 +02:00
Bram
a283b436e1 [mod] typo
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
2019-09-15 02:19:11 +02:00
Bram
7926b761fd [mod] typo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-09-15 02:19:11 +02:00
Bram
22be1a320b [mod] typo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-09-15 02:19:11 +02:00
Bram
889e34888d [mod] typo
Co-Authored-By: decentral1se <lukewm@riseup.net>
2019-09-15 02:19:11 +02:00
Laurent Peuch
3130bb59ac [mod] stop apps upgrade if one upgrade fail 2019-09-15 02:19:11 +02:00
Laurent Peuch
930b8378a1 [mod] remove unused variable 2019-09-15 02:19:11 +02:00
Alexandre Aubin
9c383ef06a Make migration more robust to re-runs 2019-09-14 18:21:42 +02:00
Alexandre Aubin
ebc92d4739
Merge pull request #794 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2019-09-14 00:41:32 +02:00
Alexandre Aubin
094a2afe1a Simplify permission handling in app_map + add tests for it 2019-09-13 22:45:31 +02:00
Alexandre Aubin
3df6ce17b6 Properly handle all those errors >.> ... 2019-09-13 20:34:30 +02:00
Alexandre Aubin
63fa54171d Ugh we really need to make this raise an exception ... 2019-09-13 20:13:44 +02:00
Alexandre Aubin
732f898773 Small issue when deleting the user 2019-09-13 19:42:15 +02:00
Alexandre Aubin
b995b3254d Remove some unecessary messages when handling primary groups and all_users 2019-09-13 18:41:05 +02:00
Alexandre Aubin
ea8c0cae94 Deprecate legacy app access system 2019-09-13 18:34:26 +02:00
Alexandre Aubin
f950378c63 Do not display primary groups by default when running yunohost user group list 2019-09-13 17:39:21 +02:00
Alexandre Aubin
302e755f48 Assume we target the .main permission if it's not given explicitly 2019-09-13 16:50:46 +02:00
Alexandre Aubin
ccc7583ec4 Add backup/restore test for permission app, and fix a small related bug 2019-09-13 16:33:25 +02:00
Alexandre Aubin
ec5069b71c Propagate changes on backup tests + fixes bugs found in the process 2019-09-13 16:33:25 +02:00
Alexandre Aubin
bdad4ffd71 c.f. issue 1405 ... those 'if ldap.stuff()' are complete bullshit from the very beginning since they never return False : instead they trigger an exception which means the current error management is completely meaningless ... so this refactorize all the places if found those + add proper error messages 2019-09-13 16:33:03 +02:00
Alexandre Aubin
2e14834e6b Misc fixes following tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
b912cd0aec Propagate all changes to tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
fe8f7f2210 Update permission helper : have a single helper to manage urls, and a helper to add/remove groups to permission 2019-09-13 16:33:03 +02:00
Alexandre Aubin
68db93cd63 Fix an issue about groups not being properly cleaned and perms synced when deleting a user 2019-09-13 16:33:03 +02:00
Alexandre Aubin
f1f6513796 Small tweaks for user group tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
c0361430e2 Try to simplify + comment the code of check_LDAP_db_integrity 2019-09-13 16:33:03 +02:00
Alexandre Aubin
e40698ef20 Propagate changes on migration 2019-09-13 16:33:03 +02:00
Alexandre Aubin
bbfc62cf3e Backup/restore app permissions using yaml files which are much simpler to handle... 2019-09-13 16:32:32 +02:00
Alexandre Aubin
a92ff53077 Propagate changes to other parts of the code relying on groups and permissions 2019-09-13 16:32:32 +02:00
Alexandre Aubin
d5b2fb7a71 Misc fixes/improvements for i18n strings 2019-09-13 16:32:32 +02:00