summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #48507 from nextcloud/backport/48451/stable29Benjamin Gaussorgues2024-10-021-0/+55
|\
| * fix: make federation address book sync work with allow_local_remote_servers ↵backport/48451/stable29Daniel Kesselberg2024-10-011-0/+55
| | | | | | | | | | | | | | | | = false Client.preventLocalAddress expects an absolute URL, which means the base_uri option cannot be used. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #48509 from ↵Anna2024-10-021-28/+17
|\ \ | | | | | | | | | | | | nextcloud/fix/stable29/webcal-subscription-jobs-middleware [stable29] fix(caldav): add missing handlers
| * | fix(caldav): add missing handlersfix/stable29/webcal-subscription-jobs-middlewareAnna Larch2024-10-011-28/+17
| |/ | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Merge pull request #47790 from nextcloud/backport/45098/stable29Sebastian Krupinski2024-10-021-17/+63
|\ \ | | | | | | [stable29] fix(caldav): Do not load IMipPlugin before user auth and session is c…
| * \ Merge branch 'stable29' into backport/45098/stable29backport/45098/stable29Sebastian Krupinski2024-09-162-6/+6
| |\ \
| * | | fix(caldav): Do not load IMipPlugin before user auth and session is createdSebastianKrupinski2024-09-051-17/+63
| | | | | | | | | | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* | | | test(dav): imip service test expects integers for last occurencebackport/48043/stable29Anna Larch2024-10-021-11/+11
| |_|/ |/| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | test: fix service overwrite in PartFileInRootUploadTestRobin Appelman2024-09-191-1/+2
| |/ |/| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: cast node name and data to stringbackport/48044/stable29Anna Larch2024-09-161-2/+2
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(dav): Always respond custom error page on exceptionsLouis Chemineau2024-09-051-4/+4
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(caldav): allow renaming of birthday calendarsAnna Larch2024-09-042-3/+7
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(dav): Try basic auth for ajax WebDAV requestsFerdinand Thiessen2024-08-081-26/+67
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(caldav): stricter default calendar checksRichard Steinmetz2024-07-234-9/+249
| | | | | | | | | | | Reject calendars that - are subscriptions - are not writable - are shared with a user - are deleted - don't support VEVENTs Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #46012 from nextcloud/backport/45999/stable29Andy Scherzinger2024-07-101-6/+47
|\ | | | | [stable29] fix(caldav): encode calendar URIs with umlauts for activities
| * fix(caldav): encode calendar URIs with umlauts for activitiesRichard Steinmetz2024-07-101-6/+47
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | fix(caldav): limit vevent sizeSebastianKrupinski2024-07-101-0/+73
|/ | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* fix(carddav): limit vcard sizeSebastianKrupinski2024-07-041-0/+73
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* Merge pull request #46117 from nextcloud/backport/46002/stable29Daniel2024-06-291-59/+314
|\ | | | | [stable29] Use guzzle for addressbook federation
| * refactor(dav): migrate to new http clientDaniel Kesselberg2024-06-251-59/+314
| | | | | | | | | | | | The request method is available since 29 and thus we can finally use the modern http client to send the report request for the addressbook sync. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | fix(caldav): when message is a reply compare the message sender not the ↵SebastianKrupinski2024-06-271-0/+71
| | | | | | | | | | | | | | | | recipient Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | fix(userstatus): Fix user status automation in real-life scenarioJoas Schilling2024-06-251-6/+0
|/ | | | | | | | | | | Order of applying: - Out-of-office - Availability - Call - Meeting - User status Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(dav): also return shared-with-me shares dataskjnldsv2024-06-121-1/+21
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(caldav): event links in shared calendar notificationsRichard Steinmetz2024-06-111-2/+37
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #45543 from nextcloud/backport/44664/stable29John Molakvoæ2024-06-071-0/+146
|\
| * fix(dav): Rate limit address book creationHamza Mahjoubi2024-05-281-0/+146
| | | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | feat(caldav): order the calendar objects by start date for searchDaniel Kesselberg2024-06-061-0/+38
| | | | | | | | | | | | Sorting the events by the start date leads to more predictable results for the search API consumers. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | fix(caldav): event search with limit and timerangeDaniel Kesselberg2024-06-061-0/+164
|/ | | | | | | | | | | | | 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>
* feat(caldav): expose calendar subscriptionsDaniel Kesselberg2024-05-086-6/+364
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #44622 from nextcloud/backport/44534/stable29Joas Schilling2024-04-044-28/+28
|\ | | | | [stable29] build(deps): bump nextcloud/coding-standard from 1.1.1 to 1.2.1 in /vendor-bin/cs-fixer
| * fix: Apply new coding standard to all filesCôme Chilliet2024-04-044-28/+28
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | chore(dav): Fix tests for length headers on uploadCôme Chilliet2024-04-021-3/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): wrong comparison method between two eventsRobert C. Schaller2024-03-251-0/+67
| | | | | | | | | Old comparison implementation compares each element of the array against each other with no respect for the associated array label, which leads to wrongful removals because one value is accidentally present in a completely different label. New comparison works 'by-label' individually. Partly fixes #41084 because changes between 'SEQUENCE' not present, 'SEQUENCE:0' and 'SEQUENCE:1' were not detected in the old implementation and thus no email update sent. Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com> Signed-off-by: Robert C. Schaller <gtbc_robert.schaller@rsxc.de>
* fix(dav): Add retention time to sync token cleanupChristoph Wurst2024-03-213-14/+38
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #44376 from nextcloud/fix/dav/acls-shared-addressbookHamza2024-03-211-1/+1
|\ | | | | fix(dav): ACLs for shared addressbooks
| * fix(dav): ACLs for shared addressbooksChristoph Wurst2024-03-211-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(systemtags): Forbid tagging of readonly filesCôme Chilliet2024-03-193-47/+76
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #44130 from nextcloud/fix/dav/occ-fix-caldav-sync-tokensChristoph Wurst2024-03-142-3/+94
|\ | | | | fix(dav): Add occ command to fix missing caldav sync tokens
| * fix(dav): Add occ command to fix missing caldav sync tokensChristoph Wurst2024-03-122-3/+94
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | test(dav): Add unit test for no calendars/subscription limitChristoph Wurst2024-03-121-0/+38
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-044-28/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(dav): update a principal's schedule-default-calendar-URLRichard Steinmetz2024-02-282-5/+196
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Refactors "substr" calls to improve code readabilityHamid Dehnavi2024-02-231-1/+1
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* fix(dav): Rate limit calendar/subscription creationChristoph Wurst2024-02-231-0/+166
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check share attributes when downloading versionsLouis Chemineau2024-02-212-2/+27
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and ↵Anna Larch2024-02-157-50/+585
| | | | | | calendars) Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-081-5/+4
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-081-4/+5
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-081-5/+4
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(tests): Make PHP 8.1.2 with Datetime Diff Bug pass the notifier testJoas Schilling2024-01-261-3/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>