432 Commits

Author SHA1 Message Date
Peter Bieringer
5abb0046e3 sharing/group: rename auth_type -> from_auth 2026-08-07 21:52:01 +02:00
Peter Bieringer
d9a0284996 group: introduce type auth_type, extend for PAM module 2026-08-07 21:52:01 +02:00
Peter Bieringer
1ff4c6ca03 sharing: share-by-group: add share resolution for other methods beside propfind 2026-08-07 21:52:01 +02:00
Peter Bieringer
15cb7955cc group: add support for propfind 2026-08-07 21:52:01 +02:00
Peter Bieringer
ffb95dc4ea group: extend username check 2026-08-07 21:52:01 +02:00
Peter Bieringer
4303f2a938 group: enrich username check for url encoded ones, shift group retrievement 2026-08-07 21:52:01 +02:00
Peter Bieringer
953aebc85f max_vevent_rrule_occurrence: rename option 2026-08-02 10:58:13 +02:00
Peter Bieringer
b044addc53 Add: [system] max_vevent_rrule_entries option to catch DoS by problematic RRULE early enough 2026-08-01 18:54:31 +02:00
Peter Bieringer
4a4e571cce Add: [report] max_expand_occurrence option to separate from max_freebusy_occurrence 2026-08-01 18:52:08 +02:00
Peter Bieringer
bd7405a033 sharing/proppatch: add forgotten honor of 'p' in case of write access 2026-07-19 17:17:54 +02:00
Peter Bieringer
7d690b3325 sharing/delete: fix 2026-07-19 10:58:43 +02:00
Peter Bieringer
a7867fe37e make isort happy 2026-07-19 10:35:13 +02:00
Peter Bieringer
fe5fd55723 sharing: add forgotten backmap for delete 2026-07-19 10:24:23 +02:00
TowyTowy
f38688456d Fix: free-busy REPORT always fails when max_freebusy_occurrence is 0
free_busy_report() explicitly handles [reporting] max_freebusy_occurrence = 0
as "limit disabled" when fetching occurrences (n=0 lets time_range_fill
return all occurrences), but the subsequent limit check
'len(occurrences) >= max_occurrence' is trivially true for
max_occurrence == 0, so every free-busy query on a non-empty calendar
raised ValueError ("FREEBUSY occurrences limit of 0 hit") and was
answered with HTTP 400.

Skip the limit check when the limit is disabled, consistent with how
xml_report() treats the same setting ('if max_occurrence and ...').
Behavior for positive limits is unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-17 01:06:51 +02:00
TowyTowy
9d46d5b63d Fix: expand REPORT leaves recurrence properties on expanded instances
_strip_single_event() removed the recurrence-defining properties (RRULE,
EXDATE, EXRULE, RDATE) with a single try/except around sequential
delattr() calls. When one of them was absent (e.g. an event with no
EXDATE), the AttributeError aborted the whole block and the following
properties -- notably RDATE -- were left on the expanded
single-occurrence VEVENTs returned by a calendar-data expand REPORT.

Remove each property independently so a missing one no longer prevents
removal of the others. Add a regression test and fixture.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-12 22:30:47 +02:00
Arkadiusz Juszczyk
828691e3c4 sharing: URL-encode-aware backmap of REPORT/PROPPATCH hrefs
make_href percent-encodes hrefs (an '@' in an email principal becomes
%40), but the backmap compared against the raw PathMapped, so the
rewrite was skipped and the owner's real path leaked -- editing a shared
collection then failed with 403. Compare and rewrite on the quoted form.
2026-06-24 01:02:28 +02:00
Peter Bieringer
8e9216cd08 sharing: report+propfind honor base_prefix on backmap 2026-06-08 21:59:24 +02:00
Peter Bieringer
0c16337b50 sharing/bday: add forgotten actions to pass 2026-05-31 06:00:55 +02:00
Peter Bieringer
66e97cbc5b sharing/bday/template: implementation of placeholder replacement 2026-05-31 06:00:55 +02:00
Joonas Rautiola
b8977aaa21 Fix bday conversion hrefs for vCard filenames ending in v/c/f 2026-05-16 13:49:25 +03:00
Peter Bieringer
5f12573a07 sharing: PROPFIND returns also privilege "write" in case "write-content" and "write-properties" is permitted 2026-05-15 12:42:44 +02:00
Peter Bieringer
23a2c43e68 sharing/propfind/owner: return empty element in case of a mapped share / clients try PROPFIND on this not accessable href 2026-05-15 07:50:06 +02:00
Peter Bieringer
85e7cf588e validation: add trace log 2026-05-12 12:29:13 +02:00
Peter Bieringer
1ae4d7c1ce validation: extend selection for unicode-letter 2026-05-12 12:28:36 +02:00
Peter Bieringer
b9ec1c223f log on_notice_condition: implementation 2026-05-12 08:35:28 +02:00
Peter Bieringer
b6805177f7 log on_notice_condition: read config values 2026-05-12 08:35:28 +02:00
Peter Bieringer
6b71716bdf propfind/sharing: extend trace log 2026-05-04 21:39:17 +02:00
Peter Bieringer
8ada1e8452 sharing/bday: fix support of single item request 2026-05-04 21:38:47 +02:00
Peter Bieringer
17d37cd3ad propfind/sharing: fix support for single item request 2026-05-04 21:38:14 +02:00
Peter Bieringer
db7800c3f6 propfind: fix offering of C:supported-calendar-component-set 2026-05-04 21:37:48 +02:00
Peter Bieringer
14f0fa5fa4 propfind/sharing: fix support for single item request 2026-05-04 21:37:11 +02:00
Peter Bieringer
b397c94ee5 do not offer version on particular item (relates to https://github.com/Kozea/Radicale/pull/2116) 2026-05-04 21:35:12 +02:00
Peter Bieringer
3e284a5c30 sharing/bday: fix backmapping of suffix 2026-05-04 21:34:54 +02:00
Peter Bieringer
809663579e sharing: fix get request on single item with not successful bday conversion 2026-04-30 22:50:33 +02:00
Peter Bieringer
97e350341c sharing: fix get request on single items with bday conversion 2026-04-30 22:32:58 +02:00
Max Berger
cdf9e62e0b expose server version via PROPFIND on root collection and display in the UI for authenticated users 2026-04-29 23:13:36 +02:00
Riley Mathews
6e8ed03544 add actor to rabbitmq message 2026-04-28 00:54:51 -05:00
Peter Bieringer
146d4b4a9a adjust loglevels on expand 2026-04-25 07:41:05 +02:00
Peter Bieringer
1495849b61 fix circular import related to user/path value check 2026-04-23 08:33:53 +02:00
Peter Bieringer
8babd65ae8 user/path test: fixes 2026-04-23 06:13:32 +02:00
Peter Bieringer
4b15e4b432 user/path value check: fix fallback 2026-04-23 06:13:32 +02:00
Peter Bieringer
f965d46bdf storage features: code review 2026-04-23 06:13:32 +02:00
Peter Bieringer
541359977e put: disable log of backtrace on error 2026-04-23 06:13:32 +02:00
Peter Bieringer
13e7a6e569 path value check: extend pattern 2026-04-23 06:13:32 +02:00
Peter Bieringer
2be334922a user/path value check: add support for no-unicode 2026-04-23 06:13:32 +02:00
Peter Bieringer
c44ac6bae5 fix for ee21e004b33dc39de4cb84b92ff5cd8a12d7c3ed 2026-04-23 06:13:32 +02:00
Peter Bieringer
a980a5a353 logging: change result loglevel also for some seldom methods 2026-04-23 06:13:32 +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