summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/CalDAV
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): expand recurrences when searchingRichard Steinmetz2023-09-261-0/+69
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(caldav): add webroot to objectid for activitiesDaniel Kesselberg2023-09-131-0/+2
| | | | | | | | | A calendar uri includes the webroot: example.com/cloud/remote.php/dav/calendars/alice/personal/ The calendar app uses base64(calendar uri) as identifier for calendar objects. Without this patch the links from activity app to calendar app don't work for installations in a subdirectory. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(CalDAV): check birthday calendar ownerAnna Larch2023-09-071-2/+60
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix creating events with old (< unix time) lastoccurenceThomas Citharel2023-08-021-1/+11
| | | | | | Closes #20804 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #38919 from nextcloud/backport/38639/stable27Arthur Schiwon2023-07-121-1/+73
|\ | | | | [stable27] pruneOutdatedSyncTokens deletes all entries
| * Issue #36644: Test casesChristof Arnosti2023-06-211-1/+73
| | | | | | | | Signed-off-by: Christof Arnosti <charno@charno.ch>
* | fix(caldav): Ignore invalid events for reminder generationChristoph Wurst2023-07-101-0/+42
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Feature: Provide access to app generated calendars through CalDAVFerdinand Thiessen2023-04-252-0/+289
| | | | | | | | | | | This adds CalDAV support for app generated calendars, which are registered to the nextcloud core. This is done by adding a dav plugin which wraps all ICalendarProviders into a Sabre plugin (inspired by the deck app). Add unit test for AppCalendar wrapper plugin and calendar object implementation. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Merge pull request #36661 from onny/event-update-mail-subjectSimon L2023-03-161-5/+5
|\ | | | | Invitation mail: Change subject if event got updated
| * Invitation mail: Change subject if event got updatedJonas Heinrich2023-02-201-5/+5
| | | | | | | | Signed-off-by: Jonas Heinrich <heinrich@synyx.de>
* | Merge pull request #36594 from nextcloud/fix-handling-of-invitationsblizzz2023-03-021-10/+19
|\ \ | |/ |/| fix(caldav): Correctly handle calendar recreation for invitations when the current calendar is in the trashbin
| * fix(caldav): Correctly handle calendar recreation for invitations when the ↵Thomas Citharel2023-02-091-10/+19
| | | | | | | | | | | | | | | | current calendar is in the trashbin Follow-up to #32361, see https://github.com/nextcloud/calendar/issues/4098 for details Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | fix(caldav): Fix reminder timezone drift for all-day eventsChristoph Wurst2023-02-091-12/+186
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Skip tests that cannot succeed on 32bitsCôme Chilliet2023-02-071-2/+9
| | | | | | | | For some reason a timestamp in the past also triggers the PHP error about not being able to represent it as an int, so skipping that test on 32bits. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve behavior with dates on 32bits and fix tests or skip themCôme Chilliet2023-02-071-3/+7
| | | | | | | We do not support events after 2038 on 32bits but still behave better when date range start/end is after 2038. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use recurrence instance to build iMip emailAnna Larch2023-02-023-204/+875
| | | | | | | | instead of the main VEVENT of a repeating event Fixes part of https://github.com/nextcloud/calendar/issues/3919 Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore(dav): Add void return type to test methodsChristoph Wurst2023-01-2031-166/+166
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #36026 from nextcloud/fix/remove-at-matcher-in-davCôme Chilliet2023-01-108-318/+198
|\ | | | | Get rid of deprecated at matcher in dav application tests
| * Get rid of deprecated at matcher in dav application testsCôme Chilliet2023-01-058-318/+198
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Hook into sabre event lifecycle for iMip MessagesAnna Larch2023-01-051-3/+4
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* [WIP] Add logging to Scheduling PluginAnna Larch2023-01-041-2/+7
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subjectCôme Chilliet2022-12-191-6/+2
|\ | | | | Compute notification parsed subject from rich subject when possible
| * Fix comments and dav tests with Notifications and Activity changesCôme Chilliet2022-12-191-6/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use the correct Server class in apps/dav/tests/unit/CalDAV/CalendarImplTest.phpCôme Chilliet2022-12-051-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Fix codestyle in modified filesCôme Chilliet2022-12-051-1/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge branch 'master' into tests/fix-phpunit-warningsCôme Chilliet2022-12-051-2/+3
|\| | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * Fix errors from PHP 8.2 testingCôme Chilliet2022-11-141-2/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Next attemp on imip testsJulius Härtl2022-11-091-29/+28
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Attempt to fix CalendarImpl testsJulius Härtl2022-11-091-32/+106
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix some phpunit test warningsJulius Härtl2022-11-091-2/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix duplicate event email notificationsRichard Steinmetz2022-11-043-5/+94
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Switch to DisplayNameCache for CalDAVAnna Larch2022-11-031-5/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Add a background job to prune outdated sync tokensThomas Citharel2022-10-271-0/+54
| | | | | | | | We remove all outdated sync tokens, based on their auto-incremented ID. By default we only keep the last 10 000, but this can be configurable. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Remove the loop of calendars when only one is neededAnna Larch2022-10-011-18/+30
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Support iMIP invitations from MailAnna Larch2022-08-221-0/+79
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Use user name cache in activity providersJoas Schilling2022-08-191-37/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix dynamic property creations in test filesCôme Chilliet2022-08-011-5/+9
| | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/dav subdirectoryluz paz2022-07-261-3/+3
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./apps/dav` Signed-off-by: luz paz <luzpaz@github.com>
* Avoid calendar & addressbook activities being created on user being deletedThomas Citharel2022-06-141-2/+31
| | | | | | | | Addressbooks and Calendar data are destroyed through hook OC_User::pre_deleteUser, which when it reaches the backends sends AddressBookDeletedEvent/CalendarDeletedEvent typed events, which in turns generates activities that aren't deleted until they expire. This can probably lead to old activities being visible for a new user created with the same uid. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #31029 from nextcloud/expose-extra-emails-in-davVincent Petry2022-06-101-0/+2
|\ | | | | Expose additional emails in {DAV:}alternate-URI-set
| * Expose additional emails in {DAV:}alternate-URI-setThomas Citharel2022-05-171-0/+2
| | | | | | | | | | | | | | | | | | This allows iMip invitations to be send with an alternative email as "Reply-To" field. Closes #27201 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #31622 from ↵Vincent Petry2022-06-101-11/+10
|\ \ | | | | | | | | | | | | nextcloud/increase-loglevel-modernize-refresh-webcal Increase loglevel of Webcal parsing errors and modernize code
| * | Increase loglevel of Webcal parsing errors and modernize codeThomas Citharel2022-05-171-11/+10
| |/ | | | | | | | | | | Closes #31612 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #32361 from nextcloud/dav-scheduling-default-calendarVincent Petry2022-06-101-18/+67
|\ \ | | | | | | Put calendar invites into the user's first available calendar
| * | Refactor CalDAV\Schedule\PluginTest for depreciated phpunit methodsThomas Citharel2022-05-121-10/+15
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * | Put calendar invites into the user's first available calendarThomas Citharel2022-05-121-8/+52
| |/ | | | | | | | | | | | | | | | | | | If there's no default calendar and we can't find anything with URI 'personal', instead of creating a new one, start by using the first "real personal calendar" available. If not, then we create the default one. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #32364 from nextcloud/dav-listenersVincent Petry2022-06-106-13/+245
|\ \ | | | | | | 🧹 Remove all legacy event dispatchers from CalDAV & CardDAV backends
| * | Remove all legacy event dispatchers from CalDAV & CardDAV backendsThomas Citharel2022-05-176-13/+245
| |/ | | | | | | | | | | Move them to proper EventListeners and test them Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #28703 from nextcloud/enhancement/caldav-reminders-loggingChristoph Wurst2022-06-021-12/+18
|\ \ | | | | | | Debug log what happens during reminders processing