summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* DummyGetResponsePlugin: ownCloud -> NexcloudChristoph Wickert2017-03-181-1/+1
| | | | Signed-off-by: Christoph Wickert <cwickert@suse.de>
* Don't set the HTTP status twiceJoas Schilling2017-03-161-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* switch reshares to trueMaxence Lange2017-03-141-1/+1
| | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Merge pull request #3600 from coletivoEITA/masterRoeland Jago Douma2017-03-141-2/+2
|\ | | | | added method needsPartFile() in Storage
| * added method needsPartFile() in StorageVinicius Cubas Brand2017-03-141-2/+2
| | | | | | | | Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* | Correct incorrectly typed X-OC-Mtime headerStefan Schneider2017-03-101-1/+6
| | | | | | | | Signed-off-by: Stefan Schneider <stefan.schneider@squareweave.com.au>
* | Merge pull request #3621 from kuimovvg/masterRoeland Jago Douma2017-03-091-0/+1
|\ \ | | | | | | don't setted status when file is lock
| * | don't setted status when file is lockvkuimov2017-02-251-0/+1
| | |
* | | Set a status code when setting a bodyJoas Schilling2017-03-071-0/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | handle non existing owners when handling dav requestsRobin Appelman2017-03-021-3/+10
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Properly handle groups with a /Roeland Jago Douma2017-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a group contains a slash the principal URI becomes principals/groups/foo/bar. Now the URI is plit on '/' so this creates issues ;) Fixes #2957 * Add tests for groups with / Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Clean up single user modeMorris Jobke2017-02-221-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #3430 from nextcloud/fix-ios-client-detectionMorris Jobke2017-02-101-4/+3
|\ \ \ | | | | | | | | Fix detection of the new iOS app
| * | | Fix detection of the new iOS appJoas Schilling2017-02-101-4/+3
| |/ / | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / / Add integration tests for legacy DAV endpointsLukas Reschke2017-02-102-1/+19
|/ / | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #2850 from nextcloud/downstream-26603Roeland Jago Douma2017-01-021-0/+3
|\ \ | | | | | | Fixed size issues on main detail view and disappearing of share recipients (#26603)
| * | Fixed size issues on main detail view and disappearing of share recipients ↵Michael Jobst2016-12-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#26603) * fixed size issues on main detail view and disappearing of share recipients * Changes due to code comments * Moved reloadProperties() to FileInfoModel * Solved Scrutinizer issues * Bugfix: undefined value used on error * check if options are set for FileInfoModel.initialize() Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Fix legacy caldav endpointsRoeland Jago Douma2017-01-021-17/+2
|/ / | | | | | | | | | | | | * CaldavBackend is now endpoint aware (use old style principals on old endpoint and new onces on new). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Return explicit values instead of boolean from sabre (#26654)Sergio Bertolín2016-12-221-1/+5
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Fix error when $view is null when being passed into some pluginsThomas Müller2016-12-191-7/+5
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Don't set Content-Disposition header if one already existsLukas Reschke2016-12-141-2/+4
|/ | | | | | | | If a Content-Disposition header is already set by another plugin we don't need to set another one as this breaks clients. Fixes https://github.com/nextcloud/server/issues/1992 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Also get infos about email sharesJoas Schilling2016-11-301-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* basic lockdown logicRobin Appelman2016-11-161-0/+1
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* Remove unused $view from FilesPlugin (#26549)Vincent Petry2016-11-142-4/+0
| | | | The Sabre FilesPlugin never uses the view so remove it.
* remove unneeded getDirectoryContent when getting share types for a folderRobin Appelman2016-11-091-14/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update sabre dav to 3.2 (#26115)Thomas Müller2016-11-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Upload autorename on client sideVincent Petry2016-11-021-50/+0
| | | | | | | | | | | Removes the need for POST to collection which would hit against upload limits. The client tries to auto rename the file by adding a suffix "(2)". It tries to use the file list on the client side to guess a suitable name. In case a file still cannot be uploaded and creates a conflict, which can happen when the file was concurrently uploaded, the logic will continue increasing the suffix.
* Fix merging backend resultsRoeland Jago Douma2016-11-011-1/+4
| | | | | | | | * Merge share types correctly * Filter share types * Order share types Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-311-4/+28
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* Require to use at least desktop client 2.0 by defaultThomas Müller2016-10-251-1/+1
|
* Merge pull request #1883 from nextcloud/downstream-26145Morris Jobke2016-10-252-3/+6
|\ | | | | Storage 503 message improvements
| * Storage 503 message improvementsVincent Petry2016-10-242-3/+6
| | | | | | | | | | "Storage not available" is now "Storage temporarily not available". Exceptions are now logged in DEBUG level, not FATAL.
* | Goodbye Iframe transport !Vincent Petry2016-10-242-189/+0
| | | | | | | | | | | | Not needed any more in IE >= 11 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use Webdav PUT for uploads in the web browserVincent Petry2016-10-243-0/+240
|/ | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1834 from nextcloud/downstream-26186Morris Jobke2016-10-212-6/+34
|\ | | | | Add more files plugins to new DAV endpoint
| * Add more files plugins to new DAV endpoint (#26186)Vincent Petry2016-10-202-6/+34
| | | | | | | | | | | | | | | | | | | | | | * Add more files plugins to new DAV endpoint Also fix report plugin to properly retrieve the path from the prolongated URL * In case the report is not for this plugin -> simply return to allow other plugins to get executed * Adjust onReport tests to match new behavior
* | Merge pull request #1806 from nextcloud/karakayasemi_1767Roeland Jago Douma2016-10-211-4/+4
|\ \ | | | | | | Update file.php put function posthook calls
| * | Update file.php put function posthook callsSemih Serhat Karakaya2016-10-201-4/+4
| |/ | | | | | | | | | | Logicaly, postHooks should emit after touch. For chunking file it is already emitting after touch. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-201-2/+2
|/
* Merge pull request #1821 from nextcloud/downstream-26366Morris Jobke2016-10-201-8/+13
|\ | | | | Code style changes from downstream
| * Sanitize length headers when validating quotaThomas Müller2016-10-201-8/+13
| |
* | Merge pull request #1796 from nextcloud/oc_fav-reportLukas Reschke2016-10-204-2/+53
|\ \ | |/ |/| Make it possible to filter by tags with REPORT method
| * Make it possible to filter by tags with REPORT methodVincent Petry2016-10-194-2/+53
| | | | | | | | | | | | | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make sure we only use numbers as lengthJoas Schilling2016-10-191-2/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix typoThomas Citharel2016-10-141-1/+1
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #1518 from nextcloud/dav-fileshome-directory-propertiesMorris Jobke2016-10-061-2/+1
|\ | | | | FilesHome now also returns DAV properties
| * FilesHome now also returns DAV propertiesVincent Petry2016-09-261-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The files home node must also return DAV properties like etag, permissions, etc for the clients to work like they did with the old endpoint. This fix makes FilesHome extend the Sabre Directory class, this makes the FilesPlugin and other plugins recognize it as a directory and will retrieve the matching properties when applicable. Downstream of https://github.com/owncloud/core/pull/26066 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Return ETag and OC-ETag in case of a move (#25683)Thomas Müller2016-09-281-1/+25
|/ | | | | | Downstreaming of https://github.com/owncloud/core/pull/25683 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* UPDATE permissions qualify for renaming a nodeJoas Schilling2016-09-071-5/+10
|
* Only require CREATE permissions when the file does not exist yetJoas Schilling2016-09-071-2/+11
|