summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* update system address book if the user change the personal settingsBjoern Schiessle2016-11-212-93/+78
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix testsRoeland Jago Douma2016-11-041-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update sabre dav to 3.2 (#26115)Thomas Müller2016-11-043-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Update sabre/dav to 3.2.0 * Adjust code to work with sabre/dav 3.2.0 and it's dependencies * Adding own CalDAV plugin to fix calendar home property * Test if there is a user logged in when listing files home * Update sabre version used by integration tests * Disable unauthenticated DAV access This is needed to make Sabre 3.2 behave like we did before. Eventually we should integrate better with the ACL plugin which itself should implement an auth failure when appropriate. ===== * Fixed so cherry-pick was succesfull Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Translate the Contacts addressbook when it's defaultJoas Schilling2016-10-065-4/+54
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unset user PHOTO before setting new one in ↵Olivier Mehani2016-09-291-0/+1
| | | | | | | OCA\DAV\CardDAV\Converter::updateCard (#26243) Signed-off-by: Olivier Mehani <shtrom@ssji.net> #26242
* Close cursorsJoas Schilling2016-09-151-1/+2
|
* Chunk if you have too many contactsJoas Schilling2016-09-141-10/+16
|
* Cast query result to intRoeland Jago Douma2016-09-091-1/+1
| | | | Else we never create the default address book
* Filter more mimetypesLukas Reschke2016-09-091-0/+12
| | | | There's no need to allow more than those defined mimetypes for images.
* more efficient check if addressbook and calendar exists for userRobin Appelman2016-08-311-0/+16
|
* Correctly handle multi-values when converting VCards to arrayJoas Schilling2016-08-301-1/+41
|