summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): close cursor when fetching max idRichard Steinmetz2023-07-111-1/+3
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Issue #36644: Fix pruneOutdatedSyncTokens for CalDAVChristof Arnosti2023-07-041-2/+11
| | | | | | | pruneOutdatedSyncTokens accidentally deletes all entries of the calendarchanges table instead of leaving $limit elements in the table Signed-off-by: Christof Arnosti <charno@charno.ch>
* fix(carddav): Mark system address book as read-onlyChristoph Wurst2023-05-151-0/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not reuse query builder objects in DAV account deletionJoas Schilling2023-02-011-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Fix sync errors for duplicate cards with the same UID for different ↵Christopher Ng2023-01-132-4/+2
| | | | | | | | backends" This reverts commit ddcee3dbab01b4f4fc163c68a54055facfa8af16. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix sync errors for duplicate cards with the same UID for different backendsAnna Larch2023-01-052-2/+4
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subjectCôme Chilliet2022-12-191-15/+1
|\ | | | | Compute notification parsed subject from rich subject when possible
| * Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-291-15/+1
| | | | | | | | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Cleanup contactsinteractionCarl Schwan2022-11-251-9/+2
|/ | | | | | - Add more typing and use PHP 7.4 typed properties Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Switch to DisplayNameCache for CardDAVAnna Larch2022-11-031-15/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Add a background job to prune outdated sync tokensThomas Citharel2022-10-271-0/+14
| | | | | | | | 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>
* Wrap address book creation write-read in a transactionChristoph Wurst2022-10-031-13/+23
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #33104 from nextcloud/enhancement/add-logging-federationblizzz2022-10-011-1/+3
|\ | | | | Federation - add logging, update the server status if sync fails
| * Add logging to federationAnna Larch2022-07-271-1/+3
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Merge pull request #33450 from sazanof/bug/base64-card-dav-searchblizzz2022-10-011-1/+1
|\ \ | | | | | | Fix photo url generation (add URI type to VCard2Array)
| * | Add URI type to VCardMikhail Sazanov2022-08-031-1/+1
| |/ | | | | | | Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
* | Check address book URI length before creationJoas Schilling2022-08-261-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #33615 from ↵Joas Schilling2022-08-191-21/+1
|\ \ | | | | | | | | | | | | nextcloud/perf/noid/user-displayname-cache-for-activity-providers Use user name cache in activity providers
| * | Use user name cache in activity providersJoas Schilling2022-08-191-21/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Fix carddav activitiesJoas Schilling2022-08-193-5/+5
|/ / | | | | | | | | | | | | | | The settings where combined last minute but at the same time the activities where not adjusted to map an existing setting so the filter was not possible to even limit it to the types that the activities had. Signed-off-by: Joas Schilling <coding@schilljs.com>
* / performance optimisation for carddav backend blob data readAnna Larch2022-08-151-1/+6
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix typos in apps/dav subdirectoryluz paz2022-07-261-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./apps/dav` Signed-off-by: luz paz <luzpaz@github.com>
* Merge pull request #32869 from nextcloud/dav-no-deleted-user-activitiesblizzz2022-07-231-1/+12
|\ | | | | Avoid calendar & addressbook activities being created on user being deleted
| * Avoid calendar & addressbook activities being created on user being deletedThomas Citharel2022-06-141-1/+12
| | | | | | | | | | | | | | | | 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>
* | Cleanup CardDav SyncServiceCarl Schwan2022-06-242-70/+19
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Summer cleanup of the federation appCarl Schwan2022-06-241-9/+2
| | | | | | | | | | | | | | | | | | | | - Use IEventDispatcher instead of deprecated symfony dispatcher - Use LoggerInterface where possible - Use php 7.4 properties - Add type hinting where possible - Move federation hooks to a seperate listener Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add typing to Sharing BackendCarl Schwan2022-06-222-47/+36
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32364 from nextcloud/dav-listenersVincent Petry2022-06-102-50/+13
|\ | | | | 🧹 Remove all legacy event dispatchers from CalDAV & CardDAV backends
| * Fix a doctype in OCP for IAddressBookThomas Citharel2022-05-171-1/+2
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Add some typed propertiesThomas Citharel2022-05-171-27/+10
| | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Remove all legacy event dispatchers from CalDAV & CardDAV backendsThomas Citharel2022-05-171-22/+1
| | | | | | | | | | | | Move them to proper EventListeners and test them Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Avoid creating carddav activities for the system userThomas Citharel2022-06-101-2/+16
| | | | | | | | | | | | | | | | Because of the system addressbook synchronisation. Closes #32803 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Use Image class from public APIChristopher Ng2022-06-021-1/+1
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #31943 from nextcloud/dav-cleanupCarl Schwan2022-05-173-50/+31
|\ | | | | Cleanup dav
| * Fix more psalm issuesCarl Schwan2022-05-163-28/+24
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Cleanup davCarl Schwan2022-05-051-23/+8
| | | | | | | | | | | | | | - Remove unused class AppEnabledPlugin - Add more type hinting when possible Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Wrap multiple inserts inside a transationCarl Schwan2022-05-121-13/+21
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Minor optimizations for saving user personal informationCarl Schwan2022-05-122-14/+17
|/ | | | | | | | | | | | | | | | * Remove double hook: the OC_User::changeUser triggers an OC\AccountManager::userUpdated and the app is already listening to this signal in its Application definition * Make createCard not check if an card exists if we already checked previously. We also don't try to get the card if the user is disabled as we don't use the card in this case We this change we go from 100 DB requests to 80 DB requests when saving an user email address. Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit c6fd482edf33214a9ad4787e4cac278f871fa7c8)
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-022-20/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Don't recreate sql query each timeCarl Schwan2022-03-101-8/+8
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix more than 1000 entries in queries exception in CardDavBackendCarl Schwan2022-02-211-7/+10
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Convert strict_search to wildcard property and add psalm docsJoas Schilling2021-12-082-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only wildcard search if enumeration is allowedJoas Schilling2021-12-082-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* l10n: Spelling unificationValdnet2021-06-211-6/+6
| | | | | | Spelling unification in Transifex. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* l10n: Spelling unificationValdnet2021-06-211-1/+1
| | | | | | Spelling unification in Transifex. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* l10n: Spelling unificationValdnet2021-06-211-17/+17
| | | | | | Spelling unification in Transifex. Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Allow apps to get photos of VObjectsJoas Schilling2021-06-091-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0423-47/+29
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove since from implementations and fix some more styleJoas Schilling2021-05-256-37/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix PHP CSJoas Schilling2021-05-213-47/+39
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>