Commit Graph

2701 Commits

Author SHA1 Message Date
Peter Bieringer
2c3f74fd41 test/sharing: add test case for try to change PathOrToken 2026-04-23 06:13:31 +02:00
Peter Bieringer
f0bfa7110e test/sharing: add unicode tests 2026-04-23 06:13:31 +02:00
Peter Bieringer
9137f5bca4 test: add cases for user/path value check 2026-04-23 06:13:31 +02:00
Peter Bieringer
8ebf56ea17 sharing/csv: fix improper quote conversion 2026-04-23 06:13:31 +02:00
Peter Bieringer
7dcfd4ae19 sharing/csv: honor stock encoding 2026-04-23 06:13:31 +02:00
Peter Bieringer
175a07e7ca remove not working and disabled optimization, see https://github.com/Kozea/Radicale/pull/2087 2026-04-23 06:13:31 +02:00
Peter Bieringer
70bcaf3ad1 change result loglevel depending on status 2026-04-23 06:13:31 +02:00
Peter Bieringer
eecfdcaf69 sharing: adjust loglevel or add forgotten log 2026-04-23 06:13:31 +02:00
Peter Bieringer
53d5a89165 use new format checker for path/user 2026-04-23 06:13:31 +02:00
Peter Bieringer
af5121ab34 new option for checking path/user value 2026-04-23 06:13:31 +02:00
Max Berger
7f3895099f UI: Show title and description in sharing dialogs 2026-04-22 22:38:16 +02:00
Max Berger
66d4827250 UI: Dynamic window titles including URL 2026-04-22 22:13:40 +02:00
Max Berger
ecac9c6ced UI: Bugfix showing sharing permissions 2026-04-22 20:59:06 +02:00
Peter Bieringer
a60ba7ae7f pathutils: change loglevel for detection 2026-04-19 11:59:42 +02:00
Peter Bieringer
6638e15fd0 storage/mtime resultion test: do not stop hard in case mtime cannot be set 2026-04-19 11:58:59 +02:00
Peter Bieringer
93a4d9390c add various test cases for filesystems 2026-04-19 11:58:59 +02:00
Peter Bieringer
1a34c78261 test and display features of used collection base directory 2026-04-19 11:58:59 +02:00
Peter Bieringer
cd4d832003 Adjust: respond with 500 in case principal collection cannot be created (e.g. filesystem issues) 2026-04-19 11:58:59 +02:00
Peter Bieringer
e998943a73 application startup: stop if TEMP is set but not writable or even not existing 2026-04-19 11:58:59 +02:00
Peter Bieringer
1b1c4cf0ef fix https://github.com/Kozea/Radicale/issues/2095 2026-04-19 11:56:57 +02:00
Max Berger
3866a648e7 UI: Only clear errors on successful login 2026-04-16 23:00:57 +02:00
Peter Bieringer
17e461cd82 put: extend log line 2026-04-15 21:41:14 +02:00
Peter Bieringer
856d6602ea Merge pull request #2089 from henning-schild/henning/staging1
deal with bcrypt>=5 72 chars limit for libpass+passlib
2026-04-15 07:09:09 +02:00
Peter Bieringer
33ffc27384 storage/test/collision: fix for hfs+ and cosmetics 2026-04-15 05:55:07 +02:00
Peter Bieringer
a6d7fcf1b9 storage/detect+test file systems with collision: fix to catch HFS+ (MacOS) 2026-04-14 20:45:04 +02:00
Peter Bieringer
c7625650c1 storage/pathutils: temp test 2026-04-14 20:45:04 +02:00
Peter Bieringer
da58a4da13 storage/test/symlink: bugfix 2026-04-14 20:45:04 +02:00
Peter Bieringer
32055f9048 storage/test/symlink: fix path concat 2026-04-14 20:45:04 +02:00
Peter Bieringer
b18cf74332 storage/test: add cases for file name collision 2026-04-14 20:45:04 +02:00
Peter Bieringer
6d25fa07e1 storage/test: adjust condition related to symlink test 2026-04-14 20:45:04 +02:00
Peter Bieringer
7a55e8164b storage: add and take use of flag _filesystem_root_folder_is_collision_free 2026-04-14 20:45:04 +02:00
Peter Bieringer
f6eb5634cd storage: fix mtime granularity detection by switching to relative adjustment (fix broken vfat support) 2026-04-14 20:45:04 +02:00
Peter Bieringer
07e3a2cbad pathutils: add tests for symlink support or collision-free folder and improve path_to_filesystem 2026-04-14 20:45:04 +02:00
Peter Bieringer
9fab1bc9cc mkcalendar/mkcol: return CONFLICT in case of file name collision 2026-04-14 20:45:04 +02:00
Henning Schild
6690e9e3ca radicale/utils: drop bcrypt compat check
We now support passlib and bcrypt5 so the test can be dropped.

Related-to: #1980
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 19:13:44 +02:00
Henning Schild
7b5c0304bb radicale/tests: use BCRYPT_MAX_PWLEN from auth.htpasswd
Do not define the magic value twice, instead reuse the value from the
auth code also in the related tests.

Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 18:55:05 +02:00
Henning Schild
80b0aaf24f auth/htpasswd: deal with bcrypt maximum password length
bcrypt < 5 always truncated overlong passwords for us, since version 5
we need to do that on our own or hope our password library does it for
us.

In order to support both passlib and libpass with bcrypt >= 5 we simply
truncate if needed so it does not matter which of the two libraries is
used.

Closes: #1896
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 18:21:38 +02:00
Henning Schild
eb49553b20 test/auth: add another bcrypt max len test
This time the other way around just to be extra sure. Radicale currently
does not ever call bcrypt.hashpw, let alone with an overlong password.

Related-to: #1896
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 18:21:38 +02:00
Henning Schild
e77a1c5187 test/auth: add bcrypt max len test
The maximum password length of bcrypt is 72 chars, any longer password
will create the same hash. Some password/hashing lib combinations
truncate for us, for others we might catch exceptions. So test all that
to make sure we can handle all combinations.

Related-to: #1896
Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 18:21:38 +02:00
Henning Schild
f65754e0da test/auth: fix bcrypt autodetect test
Was not using "autodetect" as intended.

Signed-off-by: Henning Schild <henning@hennsch.de>
2026-04-14 14:14:38 +02:00
Peter Bieringer
c13f2734f2 fix for https://github.com/Kozea/Radicale/issues/2084 2026-04-12 09:09:20 +02:00
Max Berger
a32cc13e53 Clear Errors in Login Form on show 2026-04-11 23:11:06 +02:00
Max Berger
a5780f2dc5 UI/Sharing: Allow explicit setting of write-properties permission 2026-04-11 21:52:03 +02:00
Peter Bieringer
c9ac5f8a9e storage/test: add share-by-softlink case 2026-04-11 17:03:59 +02:00
Peter Bieringer
c4ab681858 Fix: performance improvement of path_to_filesystem() in 3.7.0 caused unexpected issue in case of softlinks are used 2026-04-11 06:46:56 +02:00
Peter Bieringer
57ac38b502 sharing: adjust some log levels 2026-04-11 06:19:58 +02:00
Peter Bieringer
2e7e99f9b1 Merge pull request #2078 from maxberger/master
UI: Set 'p' permission for tokens
2026-04-10 18:02:37 +02:00
webmaster
e22d5b438f fix(auth): prevent login variable overwrite during failed cache cleanup
In the failed login cache cleanup loop, the tuple unpacking was using
`login` as the local variable name, silently overwriting the current
user's login with the one retrieved from the expired cache entry.

This caused subsequent backend authentication (e.g. IMAP) to be
attempted with the wrong username, resulting in spurious auth failures
for legitimate users whenever an expired failed-cache entry happened
to be present at the same time.

Rename the loop variable to `login_expired` to avoid shadowing the
outer `login` variable, and fix the associated debug log to reference
`login_expired` instead of the previously incorrect `login_cache`.

Fixes: intermittent authentication failures when _cache_failed contains
expired entries from previous failed login attempts by other users.

Signed-off-by: webmaster <webmaster@jbsky.fr>
2026-04-10 11:39:56 +02:00
Max Berger
1dff07460b Set 'p' permission for tokens 2026-04-10 09:08:18 +02:00
Peter Bieringer
5388740ac2 hook/email: add additional test cases, extend log for that 2026-04-10 08:35:05 +02:00