summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
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(CardDAV): set owner-principal, displayname properties for SABAnna Larch2023-08-241-1/+0
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #39904 from nextcloud/backport/38397/stable27John Molakvoæ2023-08-161-4/+25
|\
| * enh(contacts): show/hide addressbooks for allJohannes Merkel2023-08-161-4/+25
| | | | | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* | fix: close cursor after reading the invitationDaniel Kesselberg2023-08-111-1/+3
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix creating events with old (< unix time) lastoccurenceThomas Citharel2023-08-021-1/+11
| | | | | | Closes #20804 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix share roots always being marked as writableRobin Appelman2023-07-281-22/+54
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #38919 from nextcloud/backport/38639/stable27Arthur Schiwon2023-07-122-2/+113
|\ | | | | [stable27] pruneOutdatedSyncTokens deletes all entries
| * Issue #36644: Test casesChristof Arnosti2023-06-212-2/+113
| | | | | | | | 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>
* | refactor: adjust to unexposed searchBySystemTagArthur Schiwon2023-07-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | - in this backport we have to drop the breaking addition in \OCP\Files\Folder - this requires adjustments in check for the existance of the method but also in testing - another change in \OCP\SystemTag\ISystemTagManager can be applied as this interface is not implemented elsewhere Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix: cominbation of small fixesArthur Schiwon2023-07-061-3/+20
| | | | | | | | | | | | | | | | - possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix: include invisible tags for adminsArthur Schiwon2023-07-061-45/+59
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix: search with more than one search tagsArthur Schiwon2023-07-061-108/+302
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(carddav): Don't show system address book cards to guestsChristoph Wurst2023-05-251-0/+78
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(carddav): Check enumeration settings for all SAB methodsChristoph Wurst2023-05-251-2/+240
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(CardDAV): Add Sabre\DAV\IMoveTarget support to OCA\DAV\CardDAV\AddressBookThomas Citharel2023-05-161-26/+55
| | | | | | | | | | This allows to just UPDATE the card row instead of deleting it and reinsert it. It's very similar to https://github.com/nextcloud/server/pull/30120 for calendars. As we need the addressbookid exposed, this introduces OCA\DAV\CardDAV\Card that extends Sabre's. I chose specifically NOT to auto-inject LoggerInterface in Addressbook like in #30120 because the chain of DI is huge just for ONE simple call and it would break an existing dirty call (OCA\Contacts calling OCA\DAV) of ContactsManager in Contacts: https://github.com/nextcloud/contacts/pull/1722 (in SocialApiService), but this is debatable. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #37965 from ↵Simon L2023-05-161-4/+8
|\ | | | | | | | | nextcloud/fix/transactional-system-addressbook-sync fix(dav): Run system address book create-if-not-exists in transaction
| * fix(dav): Run system address book create-if-not-exists in transactionChristoph Wurst2023-05-121-4/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | feat(users): Store and load a user's managerChristoph Wurst2023-05-121-2/+32
| | | | | | | | | | Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(carddav): expose system address bookAnna Larch2023-05-111-0/+5
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | feat(dav): store scopes for properties and filter locally scoped properties ↵Anna Larch2023-05-092-10/+131
|/ | | | | | for federated address book sync Signed-off-by: Anna Larch <anna@nextcloud.com>
* Rename setting 'sendEventRemindersToSharedGroupMembers' to ↵Daniel Teichmann2023-05-041-2/+2
| | | | | | 'sendEventRemindersToSharedUsers'. Signed-off-by: Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de>
* fix(psalm): systemtagsJohn Molakvoæ2023-04-281-2/+6
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* expose system tags as dav property for filesRobin Appelman2023-04-281-5/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Feature: Provide access to app generated calendars through CalDAVFerdinand Thiessen2023-04-254-12/+304
| | | | | | | | | | | 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>
* tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-172-5/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Use proper path when creating node instancesJulius Härtl2023-04-171-2/+18
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix dav application testsCôme Chilliet2023-04-031-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-031-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* | fix(CI): Add unit test for nextcloud/server#37167Joas Schilling2023-03-131-1/+46
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(user_status): Fix the user status automation on the day availability ↵Joas Schilling2023-03-131-0/+159
| | | | | | | | | | | | rules are adjusted Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+1
| | | | | | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* | fix: Use proper path for quota fetchingJulius Härtl2023-03-061-0/+12
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | 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>
* | | Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-215-14/+470
| |/ |/|
* | Do not set up filesystem on every callAnna Larch2023-02-175-470/+14
| | | | | | | | | | | | Also remove old Oc_FileChunking logis that produced GC- collectable chunks Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(caldav): Fix reminder timezone drift for all-day eventsChristoph Wurst2023-02-091-12/+186
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | perf(dav): Do not call general setupFS on ever dav authJulius Härtl2023-02-091-6/+6
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #29010 from mattian/fix/19218/birthday-leap-dayChristoph Wurst2023-02-081-31/+33
|\ | | | | dav: fix birthday calendar event generation for leap days
| * dav: fix birthday calendar event generation for leap daysMattia Narducci2023-02-061-31/+33
| | | | | | | | | | | | | | | | | | | | | | Fix generation of birthday calendar events for the 29th of February. A recurring event for the 29th of February in the (default) Gregorian calendar system would only generate instances in leap years. Fix this behaviour by generating recurring events for the last day of February, the 29th on leap years and the 28th otherwise. Signed-off-by: Mattia Narducci <mattianarducci1@gmail.com>
* | 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>
* | Fix Sabre connector testCôme Chilliet2023-02-071-2/+2
| | | | | | | | 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>
* | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-0/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>