summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7909 from nextcloud/fix-migration-type-hintsMorris Jobke2018-01-174-15/+12
|\ | | | | Fix the type hints of migrations and correctly inject the wrapped sch…
| * Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-174-15/+12
| | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix avatarHomeRoeland Jago Douma2018-01-161-1/+1
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure the arrays are arraysJoas Schilling2018-01-121-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return proper principal on the uploads collection listingRoeland Jago Douma2018-01-101-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7533 from ↵Morris Jobke2018-01-035-62/+126
|\ | | | | | | | | nextcloud/oc-28545-handle-oc-total-length-in-new-chunking [oc] Handle OC-Total-Length in new chunking
| * Handle OC-Total-Length in new chunkingThomas Müller2017-12-155-62/+126
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Do not log user errors as log level 4Morris Jobke2018-01-031-0/+4
| | | | | | | | | | | | * hides log entries for the case the parent folder does not exist 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>
* Fix unit tests for CalendarManagerMorris Jobke2017-12-121-2/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6884 from ↵Morris Jobke2017-12-1212-10/+487
|\ | | | | | | | | nextcloud/feature/3003/opt_out_of_birthday_calendar Opt out of birthday calendar
| * generate birthday calendars in a background job after admin enabled themGeorg Ehrke2017-11-113-3/+123
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * create a user's birthday calendar right after they requested itGeorg Ehrke2017-11-112-2/+13
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * respect admin / user choice about birthday calendars in corresponding hooksGeorg Ehrke2017-11-111-2/+50
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * disallow users to create calendars with reserved namesGeorg Ehrke2017-11-111-0/+15
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * adapt occ 'dav:sync-birthday-calendar commandGeorg Ehrke2017-11-111-1/+33
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * add CalDAV interface that allows users to re-enable their birthday calendarGeorg Ehrke2017-11-112-0/+133
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * remember when a user deleted their contact birthdays calendarGeorg Ehrke2017-11-104-7/+43
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Add admin checkbox to disable birthday calendarsGeorg Ehrke2017-11-092-0/+82
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Make ContactsStore a public APITobia De Koninck2017-12-112-0/+18
| | | | | | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* | Merge pull request #6590 from nextcloud/dav-create-activities-for-publishingMorris Jobke2017-12-114-0/+38
|\ \ | | | | | | Create activities for (un)publishing calendar events
| * | Update wordingMorris Jobke2017-12-111-2/+2
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * | Create activities for (un)publishing calendar eventsThomas Citharel2017-12-114-0/+38
| | | | | | | | | | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | | Principal search: Take sharing settings into accountGeorg Ehrke2017-12-113-22/+96
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | exclude shared calendars from freeBusyGeorg Ehrke2017-12-111-1/+1
| | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Fix functions to search for principals in the backend.Christoph Seitz2017-12-114-6/+157
|/ / | | | | | | | | | | | | Add a "searchPrincipals" function to the NC principal backend. Fix the "findByUri" function to respect the prefixPath. Signed-off-by: Christoph Seitz <christoph.seitz@posteo.de>
* | Merge pull request #7342 from nextcloud/fix_carddav_converterblizzz2017-12-111-2/+5
|\ \ | | | | | | CardDAV convertor check should not be to wide
| * | 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>
* | | Merge pull request #7313 from ↵Morris Jobke2017-12-111-16/+51
|\ \ \ | |/ / |/| | | | | | | | nextcloud/ensure-that-x-oc-mtime-header-is-an-integer-with-chunked-uploads Ensure that X-OC-MTime header is an integer with chunked uploads
| * | Reject X-OC-MTime header if given as a string with hexadecimal notationDaniel Calviño Sánchez2017-11-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In PHP 7.X hexadecimal notation support was removed from "is_numeric", so "sanitizeMtime" directly rejected those values; in PHP 5.X, on the other hand, "sanitizeMtime" returned 0 when a string with hexadecimal notation was given (as it was the behaviour of "intval"). To provide a consistent behaviour between PHP versions, and given that it does not make much sense to send X-OC-MTime in hexadecimal notation, now X-OC-MTime is always rejected if given as a string with hexadecimal notation. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Don't use runInSeparateProcessThomas Müller2017-11-271-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directly calling "header" in the PHPUnit process causes the "Cannot modify header information - headers already sent by" error to be thrown. Instead of running the test in a separate process, which is slower, this commit wraps the call to "header" in a method that can be mocked in the tests. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Make possible to provide a specific HTTP request object to FileDaniel Calviño Sánchez2017-11-271-10/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be used in a following commit to test how the X-OC-MTime header is handled. This commit is based on the "make File::put() more testable" commit (included in 018d45cad97e0) from ownCloud by Artur Neumann. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * | Ensure that X-OC-MTime header is an integer also with chunked uploadsDaniel Calviño Sánchez2017-11-271-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit extends the changes introduced in pull request #3793 also to chunked uploads. The "sanitizeMTime" method name is the same used in the equivalent pull request to this one from ownCloud (28066). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #7395 from nextcloud/remove-unusedLukas Reschke2017-12-061-3/+0
|\ \ \ | | | | | | | | Remove unused variables
| * | | Remove unused variablesMorris Jobke2017-12-051-3/+0
| | | | | | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | | Fix testsRoeland Jago Douma2017-12-041-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | A failed storage is a not available storageRoeland Jago Douma2017-12-041-0/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | We have to double check. Since getting the info of the root returns a generic entry. But actually the stroage is not available. Else we get very weird sync and web behavior. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #6901 from nextcloud/bugfix/4014/catch_parsing_errorMorris Jobke2017-11-273-3/+32
|\ \ \ | | | | | | | | catch errors when parsing calendar data for calendar query requests
| * | | catch errors when parsing calendar data for calendar query requestsGeorg Ehrke2017-11-273-3/+32
| |/ / | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Merge pull request #7308 from nextcloud/do-not-log-InvalidSyncTokenMorris Jobke2017-11-271-0/+3
|\ \ \ | | | | | | | | Log InvalidSyncToken on DAV in debug level
| * | | Log InvalidSyncToken on DAV in debug levelMorris Jobke2017-11-271-0/+3
| |/ / | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / / Log NotImplementedException on DAV in debug levelMorris Jobke2017-11-271-0/+4
|/ / | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #7047 from ↵Björn Schießle2017-11-201-0/+3
|\ \ | | | | | | | | | | | | nextcloud/add-support-for-files-with-no-permissions Add support for files with no permissions
| * | Return whether the file is readable or not in the DAV permissionsDaniel Calviño Sánchez2017-11-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now it was safe to assume that every file was readable by its owner, so there was no need to return whether the file was readable or not. However, with the introduction of end to end encryption that is no longer the case, and it is now necessary to explicitly provide that information. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | Merge pull request #7152 from ↵Morris Jobke2017-11-171-0/+16
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/adjust_calendarobject_size_after_applying_class remove cached size from shared calendar objects
| * | | remove cached size from shared calendar objectsGeorg Ehrke2017-11-121-0/+16
| | |/ | |/| | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | Merge pull request #7193 from nextcloud/bugfix/noid/invitation-email-refinementsMorris Jobke2017-11-161-4/+6
|\ \ \ | | | | | | | | refine invitation email
| * | | refine invitation emailGeorg Ehrke2017-11-161-4/+6
| | | | | | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | | | Merge pull request #6840 from nextcloud/feature/5282/calendar_apiMorris Jobke2017-11-164-3/+375
|\ \ \ \ | |/ / / |/| | | Calendar API for apps
| * | | add option to filter CalendarAPI by componenttypeGeorg Ehrke2017-11-091-2/+8
| | | | | | | | | | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>