aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
Commit message (Collapse)AuthorAgeFilesLines
* fix(db): Deprecate `IExpressionBuilder::or()` and ↵Joas Schilling2024-07-191-6/+6
| | | | | | `IExpressionBuilder::and()` without parameters Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(carddav): limit vcard sizeSebastianKrupinski2024-07-041-0/+40
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* chore: don't pass null to createElementDaniel Kesselberg2024-06-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* refactor(dav): migrate to new http clientDaniel Kesselberg2024-06-251-44/+41
| | | | | | 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>
* feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-301-2/+27
| | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* chore: Add SPDX headerAndy Scherzinger2024-05-291-1/+1
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Merge pull request #44664 from nextcloud/fix/dav/rate-limit-create-adress-bookHamza2024-05-281-0/+87
|\ | | | | fix(dav): Rate limit address book creation
| * fix(dav): Rate limit address book creationHamza Mahjoubi2024-05-271-0/+87
| | | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | chore: Add SPDX headerAndy Scherzinger2024-05-2726-552/+73
|/ | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore: Improve phpdoc typing to silence psalm errorsCôme Chilliet2024-04-021-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): Add retention time to sync token cleanupChristoph Wurst2024-03-211-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(dav): ACLs for shared addressbooksChristoph Wurst2024-03-211-1/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(dav): Fix atomic addressbook updateChristoph Wurst2024-02-291-20/+22
| | | | | | | | | Sabre executes the proppatch callback *after* calling updateAddressbook and not synchronously. That means the code inside the callback was run outside a database transaction. This moves the atomic helper into the callback to create the expected transaction span. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and ↵Anna Larch2024-02-153-40/+104
| | | | | | calendars) Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2313-57/+55
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor(caldav): Use even earlier return and SQL's WHERE INChristoph Wurst2023-11-151-13/+6
| | | | | | | * Early return can operate on the input array * SQL can check be used to check for address book ID inclusion Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(search): allow contacts person searchhamza2212023-11-141-0/+4
| | | | | Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(carddav): Allow advanced search for contactsBenjamin Gaussorgues2023-11-101-12/+42
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39852 from nextcloud/pragmaHeaderFerdinand Thiessen2023-10-181-1/+0
|\ | | | | Stop sending deprecated Pragma header
| * Stop sending deprecated Pragma headerGit'Fellow2023-08-281-1/+0
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | Merge pull request #38610 from fsamapoor/replace_strpos_calls_in_dav_appChristoph Wurst2023-09-177-15/+15
|\ \ | | | | | | Refactors "strpos" calls in /apps/dav
| * \ Merge branch 'master' into replace_strpos_calls_in_dav_appFaraz Samapoor2023-06-273-4/+25
| |\ \ | | | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * | | Fixes "PossiblyNullArgument" Psalm warnings.Faraz Samapoor2023-06-122-2/+2
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * | | Refactors "strpos" calls in /apps/dav to improve code readability.Faraz Samapoor2023-06-127-13/+13
| | | | | | | | | | | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | | | fix(CardDAV): allow disabling of the system address book via config optionAnna Larch2023-09-011-1/+2
| |_|/ |/| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | fix(CardDAV): set owner-principal, displayname properties for SABAnna Larch2023-08-162-4/+3
| | | | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | | Merge pull request #38397 from nextcloud/enh/contacts/hide-adressbook-optionDaniel2023-07-181-10/+14
|\ \ \ | | | | | | | | enh(contacts): show/hide addressbooks for all
| * | | enh(contacts): show/hide addressbooks for allJohannes Merkel2023-07-101-10/+14
| | | | | | | | | | | | | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* | | | Merge branch 'master' into fix/correct-exceptions-for-SABAnna2023-07-141-1/+3
|\ \ \ \
| * | | | fix(dav): close cursor when fetching max idRichard Steinmetz2023-07-111-1/+3
| |/ / / | | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* / / / fix(CardDAV): catch right exception when checking for federated app classesAnna Larch2023-07-061-1/+1
|/ / / | | | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | / enh(sab): Add profileUrl to SABJohannes Merkel2023-07-031-1/+20
| |/ |/| | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* | Merge pull request #38856 from ↵Johannes2023-06-221-1/+13
|\ \ | | | | | | | | | | | | nextcloud/fix/contacts/3404/put-location-in-proper-place fix(sab): put location in proper address field
| * | fix(sab): put location in proper address fieldJohannes Merkel2023-06-201-1/+13
| | | | | | | | | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* | | Merge pull request #38639 from ↵Simon L2023-06-201-2/+11
|\ \ \ | |/ / |/| | | | | | | | charno/bugfix/36644-pruneOutdatedSyncTokens-deletes-all-entries Bugfix/36644 pruneOutdatedSyncTokens deletes all entries
| * | Issue #36644: Fix pruneOutdatedSyncTokens for CalDAVChristof Arnosti2023-06-121-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): Make SystemAddressBook::__construct $groupManager argument ↵Christoph Wurst2023-06-121-1/+1
|/ | | | | | nullable Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(dav): Fix avatar size in system address bookJoas Schilling2023-05-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #38448 from nextcloud/fix/carddav/no-sab-guest-usersArthur Schiwon2023-05-251-8/+6
|\ | | | | fix(carddav): Don't show system address book cards to guests
| * fix(carddav): Don't show system address book cards to guestsChristoph Wurst2023-05-251-8/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #38454 from nextcloud/fix/capitalization-other-telChristoph Wurst2023-05-251-1/+1
|\ \ | |/ |/| fix(carddav): Make system contact phone number RFC compliant
| * fix(carddav): Make system contact phone number RFC compliantgreta2023-05-251-1/+1
| | | | | | | | Signed-off-by: greta <gretadoci@gmail.com>
* | fix(carddav): Check enumeration settings for all SAB methodsChristoph Wurst2023-05-251-1/+69
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #38413 from nextcloud/fix/38412/save-avatar-SABJohannes2023-05-231-1/+1
|\ | | | | fix(SAB): Save avatar to SAB
| * fix(SAB): Save avatar to SABJohannes Merkel2023-05-231-1/+1
| | | | | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* | fix(carddav): Check if SERVER variables are set before accessing themAnna Larch2023-05-231-5/+4
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(CardDAV): Add Sabre\DAV\IMoveTarget support to OCA\DAV\CardDAV\AddressBookThomas Citharel2023-05-163-2/+153
| | | | | | | | | | 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-26/+41
|\ | | | | | | | | 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-26/+41
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>