summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* Return proper responses when office is requesting OPTIONS/HEAD with empty ↵Julius Härtl2019-08-141-1/+4
| | | | | | Bearer header Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #14429 from tobiasKaminsky/shareesOnDavRoeland Jago Douma2019-08-132-50/+109
|\ | | | | Show sharees via propfind
| * get all shares, not only first one per typetobiasKaminsky2019-08-081-2/+1
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
| * use namespace everywheretobiasKaminsky2019-08-061-3/+3
| | | | | | | | | | | | no camelCase Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
| * Fix testsRoeland Jago Douma2019-08-011-0/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * add display name to sharee listtobiasKaminsky2019-07-311-2/+3
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
| * Unify share fetchingRoeland Jago Douma2019-07-301-99/+27
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Use proper ShareeListRoeland Jago Douma2019-07-302-6/+61
| | | | | | | | | | | | This makes the XML parsing more sane ;) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Use proper cachingRoeland Jago Douma2019-07-301-25/+54
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * wiptobiasKaminsky2019-07-231-58/+32
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
| * wiptobiasKaminsky2019-07-223-62/+72
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
| * Show sharees via propfindtobiasKaminsky2019-07-222-1/+62
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* | More precise error message when expected filesize does not match - could be ↵Morris Jobke2019-07-291-3/+2
| | | | | | | | | | | | on reading or writing side Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Do not log locked filesRoeland Jago Douma2019-07-261-1/+8
|/ | | | | | | This is the code doing its job. There is no need to spam the log file with this. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont use part files for dav writes when the target folder doesn't have ↵Robin Appelman2019-07-031-2/+7
| | | | | | create permissions Signed-off-by: Robin Appelman <robin@icewind.nl>
* log inner exception during dav writeRobin Appelman2019-06-061-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Typehint builtin types in constructor to not initiate autoloadingRoeland Jago Douma2019-06-041-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Prefetching blows up if there are a lot of files.Roeland Jago Douma2019-04-181-7/+0
| | | | | | | | I saw instances where people had a lot of files (each with custom properties) and all this prefetching blew up and started to consume an insane amount of RAM resulting in the process getting killed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* implement principal property search for calendar user address set propertyGeorg Ehrke2019-03-211-0/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* throw a proper error if rename fails in davRobin Appelman2019-03-141-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve codeMorris Jobke2019-03-131-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use dependency injection for app managerMorris Jobke2019-03-132-3/+13
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Created infrastructure to show circles' shared filesVinicius Cubas Brand2019-03-132-5/+38
| | | | | | | | | | | | | | There is a proposal to allow users to filter files shared to circles. This commit is needed to provide the infrastucture for it. Issue: https://github.com/nextcloud/circles/issues/137 Changes to comply to https://github.com/coletivoEITA/circles/pull/2 Polishing: get files shared to circles in caldav Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com> Signed-off-by: Maxence Lange <maxence@artificial-owl.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-132-1/+84
|\ | | | | Change CALDAV to allow calendars be shared with circles.
| * Use proper dependency injection for app managerMorris Jobke2019-03-051-2/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Suppress phan exceptions because they are catched by a class_existsMorris Jobke2019-03-051-0/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * use class_exists on correct class to please phanGeorg Ehrke2019-03-041-2/+2
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * properly catch exceptions of detailsCircleGeorg Ehrke2019-03-031-1/+9
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Get user's circles without touching sessionVinicius Cubas Brand2019-03-011-6/+1
| | | | | | | | | | | | This works with nextcloud/circles#260 Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
| * allow sharing addressbooks with circlesGeorg Ehrke2019-03-011-2/+1
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Share calendar to circleVinicius Cubas Brand2019-03-012-1/+73
| | | | | | | | | | | | | | * Allow user to share calendar with a circle * Allow user to see calendars shared with his/her circles Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* | Merge pull request #14514 from nextcloud/fix/no_debug_outputRoeland Jago Douma2019-03-041-3/+6
|\ \ | | | | | | Do not just write foobar
| * | Do not just write foobarRoeland Jago Douma2019-03-041-3/+6
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Merge pull request #13871 from PLUTEX/masterMorris Jobke2019-03-041-1/+3
|\ \ \ | |/ / |/| | dav: Fix handling of chunked WebDAV upload
| * | dav: Fix handling of chunked WebDAV uploadJan-Philipp Litza2019-01-281-1/+3
| | | | | | | | | | | | | | | | | | When $data is null (which can happen when $request->getBodyAsStream() returns null), the Exceptions says "copied bytes: 0, expected filesize: 0", which sounds more like success...
* | | Update apps/dav/lib/Connector/Sabre/Node.phpChristoph Wurst2019-03-041-1/+1
| | | | | | | | | Co-Authored-By: tobiasKaminsky <tobias@nextcloud.com>
* | | Add note to dav endpointtobiasKaminsky2019-02-272-0/+39
| |/ |/| | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* | Merge pull request #14066 from nextcloud/feature/noid/casted-system-valuesJoas Schilling2019-02-221-1/+1
|\ \ | | | | | | Get typed system values
| * | Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Hanlde writestream not closing sourceRoeland Jago Douma2019-02-201-0/+4
|/ / | | | | | | | | | | | | | | | | Fixes #14298 If a storage doesn'tclose the write stream then $isEOF is not yet set. So we have to fallback. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make sure that we have a streamRoeland Jago Douma2019-02-181-0/+7
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add a wrapper to determine if a file is EOFRoeland Jago Douma2019-02-151-2/+8
|/ | | | | | | | | The stream is already closed at this point. Which means feof will always return false. We have to determine if the stream is EOF in the preCloseCallback. And pass this info along. Then the logic works as expected. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* check anonymous OPTIONS requests file in root (not in subdir)Bastien Durel2019-01-041-1/+8
| | | | Signed-off-by: Bastien Durel <bastien@durel.org>
* If the parent is not cached we should request the fileRoeland Jago Douma2018-12-061-3/+3
| | | | | | Else we ignore all incomming shares. Which basically does :boom: Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only run the AnonymousOptionsPlugion on Anonymous requestsRoeland Jago Douma2018-12-041-1/+1
| | | | | | Fixes #12744 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* extend anonymous options to work on every dav urlRobin Appelman2018-11-231-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* forward object not found error in switch as dav 404Robin Appelman2018-11-191-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow writing an empty file with the new writeStreamRoeland Jago Douma2018-11-051-0/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not log FileLock as exceptionRoeland Jago Douma2018-11-041-0/+3
| | | | | | | | There is no reason to log FileLock errors as exceptions to the log file. Locks happen for very legit reasons and it is actually a sign of the code doing its job. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #12148 from nextcloud/suppress-wrong-audit-log-messageRoeland Jago Douma2018-11-021-2/+3
|\ | | | | suppress wrong audit log messages about failed login attempts