nextcloud/apps/dav/lib
Daniel Kesselberg 4718a7e4e0 fix(caldav): event search with limit and timerange
Event recurrences are evaluated at runtime because the database only knows the first and last occurrence.

Given, a user created 8 events with a yearly reoccurrence and two for events tomorrow.
The upcoming event widget asks the CalDAV backend for 7 events within the next 14 days.

If limit 7 is applied to the SQL query, we find the 7 events with a yearly reoccurrence and discard the events after evaluating the reoccurrence rules because they are not due within the next 14 days and end up with an empty result even if there are two events to show.

The workaround for search requests with a limit and time range is asking for more row than requested and retrying if we have not reached the limit.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-05-28 19:56:36 +02:00
..
AppInfo chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Avatars chore: Add SPDX header 2024-05-27 20:11:22 +02:00
BackgroundJob chore: Add SPDX header 2024-05-27 20:11:22 +02:00
BulkUpload chore: Add SPDX header 2024-05-27 20:11:22 +02:00
CalDAV fix(caldav): event search with limit and timerange 2024-05-28 19:56:36 +02:00
CardDAV Merge pull request #44664 from nextcloud/fix/dav/rate-limit-create-adress-book 2024-05-28 16:46:05 +02:00
Command chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Comments chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Connector chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Controller chore: Add SPDX header 2024-05-27 20:11:22 +02:00
DAV chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Db chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Direct chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Events chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Exception chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Files chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Listener chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Migration chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Profiler chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Provisioning/Apple chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Search chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Service chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Settings chore: Add SPDX header 2024-05-27 20:11:22 +02:00
SetupChecks chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Storage chore: Add SPDX header 2024-05-27 20:11:22 +02:00
SystemTag chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Traits chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Upload chore: Add SPDX header 2024-05-27 20:11:22 +02:00
UserMigration chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Capabilities.php chore: Add SPDX header 2024-05-27 20:11:22 +02:00
HookManager.php chore: Add SPDX header 2024-05-27 20:11:22 +02:00
ResponseDefinitions.php chore: Add SPDX header 2024-05-27 20:11:22 +02:00
RootCollection.php chore: Add SPDX header 2024-05-27 20:11:22 +02:00
Server.php Merge pull request #44664 from nextcloud/fix/dav/rate-limit-create-adress-book 2024-05-28 16:46:05 +02:00
ServerFactory.php chore: Add SPDX header 2024-05-27 20:11:22 +02:00