summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
Commit message (Collapse)AuthorAgeFilesLines
* fixes dav share issue with ownerGeorg Ehrke2018-11-141-8/+13
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* remove LogicException, because it's also triggered with legitimate parametersGeorg Ehrke2018-09-051-4/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Remove users from system addressbook when user deactivatedThomas Citharel2018-08-061-10/+14
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* When sharing calendars and addressbooks the principal has to be verified to ↵Roeland Jago Douma2018-05-271-1/+1
| | | | | | | | be valid https://github.com/owncloud/core/pull/30149/commits/d3fb8fcdd3a6b00bde0c3c9eb4039876e7fc1967 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8335 from nextcloud/remove-unused-importMorris Jobke2018-02-143-3/+0
|\ | | | | Remove unused import statements
| * Remove unused import statementsMorris Jobke2018-02-143-3/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Simplify return statementMorris Jobke2018-02-131-3/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do no run SyncJob in cronRoeland Jago Douma2018-01-021-42/+0
| | | | | | | | | | | | | | | | Fixes #7184 The SyncJob can be very resource intensive. Since it requests all users on the system to create the system addressbook. In order to do this it creates a vcard for every user and updates the addressbook. There is no need for this job since the proper signals are emitted and handled in the carddav backend to update the addressbook live. Worst comes to worst there is always the occ command to bring the address book in sync again. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make ContactsStore a public APITobia De Koninck2017-12-111-0/+8
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* CardDAV convertor check should not be to wideRoeland Jago Douma2017-12-111-2/+5
| | | | | | | | Case: email is set to null, but the avatar is set. In the old case the email would set $emptyValue but $noImage would still be false. This we would set the empty string as email. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change @georgehrke's emailMorris Jobke2017-11-065-4/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0611-2/+36
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Check if the user/group exists for dav sharesJoas Schilling2017-10-051-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't add a LIKE condition when it's not neededThomas Citharel2017-09-251-1/+5
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Fix comparisons in the dav appJoas Schilling2017-08-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* [DAV] Fix URLUtil::splitPath usageRoeland Jago Douma2017-08-012-5/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+3
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* urldecode group principals in Cal- and CardDAV backendGeorg Ehrke2017-06-121-0/+3
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Fix ImageExportPluginTestRoeland Jago Douma2017-05-081-9/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* No more XSSRoeland Jago Douma2017-05-081-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear cache on vcard change/deleteRoeland Jago Douma2017-05-082-8/+18
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Request proper size for contacts menuRoeland Jago Douma2017-05-082-72/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache the carddav photo endpointRoeland Jago Douma2017-05-082-17/+267
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Always dispatch Carddav eventsRoeland Jago Douma2017-05-081-21/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add caching to the imageexport pluginRoeland Jago Douma2017-05-021-0/+5
| | | | | | | | | | | Since we now heavily use this endpoint for the contacts menu we better set proper caching on the images. Else this gets reload over and over again leading to slow loading menu and unneded bytes transfered. * cache for 1 hour by default * added ETag for validation Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #3770 from nextcloud/faster-search-in-contactsMorris Jobke2017-04-271-7/+6
|\ | | | | Factorize query for searching contacts
| * Add back the name query partRoeland Jago Douma2017-04-211-1/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Factorize query for searching contactsThomas Citharel2017-04-211-7/+4
| |
* | Merge pull request #4443 from nextcloud/cleanup-unused-importsJoas Schilling2017-04-241-1/+0
|\ \ | | | | | | Remove unused use statements
| * | Remove unused use statementsMorris Jobke2017-04-221-1/+0
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #4401 from nextcloud/caldav-carddav-nc-owner-displaynameRoeland Jago Douma2017-04-241-10/+39
|\ \ | | | | | | add owner-displayname property to calendars and addressbooks
| * | add owner-displayname property to calendars and addressbooksGeorg Ehrke2017-04-231-10/+39
| |/ | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* / Remove unused variablesMorris Jobke2017-04-221-1/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix remaining "PHP Inspection" warningsJoas Schilling2017-04-201-18/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add public access modifier to all methodsJoas Schilling2017-04-201-8/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict share handling to the owner onlyJoas Schilling2017-04-201-1/+20
| | | | | | | Otherwise group members can remove the share for the complete group, remove edit permissions and even single user shares for other users. Signed-off-by: Joas Schilling <coding@schilljs.com>
* get addressbook url and carddav user from remote serverBjoern Schiessle2017-04-111-14/+17
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix bug with shared_by for own calendars if sharedGeorg Ehrke2017-03-251-0/+4
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* fix testsBjoern Schiessle2017-03-241-7/+26
| | | | | | calling getAbsoluteBundlePath() in the constructor makes other tests fail Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Load cert file before syncing addressbooks and contactsJoas Schilling2017-03-241-16/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use right format for avatarsBjoern Schiessle2017-03-241-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* don't add empty values to the vcardBjoern Schiessle2017-03-241-3/+9
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* fix the way we create a new vcard to avoid to have multiple UIDsBjoern Schiessle2017-03-241-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Make sure shares use read-write when availableJoas Schilling2017-03-021-2/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't waste energy unless necessaryJoas Schilling2017-03-021-13/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use the correct principal for shared addressbooksJoas Schilling2017-02-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* this is publicJohn Molakvoæ (skjnldsv)2017-02-141-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* getUsersOwnAddressBooksJohn Molakvoæ (skjnldsv)2017-02-141-0/+27
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* VCARDS don't hold binary dataRoeland Jago Douma2016-11-231-1/+1
| | | | | | | | * We need to base64 encode the avatar! * Switched to vcard v4 * User proper data uri Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>