summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* [master] DAV: Return data-fingerprint always when asked (#25482)Markus Goetz2016-08-291-7/+2
| | | | | | | For owncloud/client#5056 Users can configure arbitrary subfolders for syncing, therefore we should always return it when asked for. The sync client makes sure to not always ask for it to save bandwidth.
* Merge pull request #1054 from nextcloud/less-cache-hitsLukas Reschke2016-08-271-1/+6
|\ | | | | Reduce the number of cache operations for dav operations
| * reuse the userfolder's fileinfo when possible during dav setupRobin Appelman2016-08-251-1/+6
| |
* | prevent infinite redirect loops if the there is no 2fa provider to passChristoph Wurst2016-08-241-1/+1
|/ | | | | | | This fixes infinite loops that are caused whenever a user is about to solve a 2FA challenge, but the provider app is disabled at the same time. Since the session value usually indicates that the challenge needs to be solved before we grant access we have to remove that value instead in this special case.
* add dav property to check if a file has a preview availableRobin Appelman2016-07-272-1/+25
|
* Update with robinJoas Schilling2016-07-2112-12/+12
|
* Fix apps/Joas Schilling2016-07-2135-52/+94
|
* Merge pull request #479 from nextcloud/add-bruteforce-throttlerLukas Reschke2016-07-211-1/+8
|\ | | | | Implement brute force protection
| * Implement brute force protectionLukas Reschke2016-07-201-1/+8
| | | | | | | | | | | | | | | | | | Class Throttler implements the bruteforce protection for security actions in Nextcloud. It is working by logging invalid login attempts to the database and slowing down all login attempts from the same subnet. The max delay is 30 seconds and the starting delay are 200 milliseconds. (after the first failed login)
* | Merge pull request #466 from nextcloud/escape-special-charactersLukas Reschke2016-07-201-1/+1
|\ \ | | | | | | Escape special characters (#25429)
| * | Escape special characters (#25429)Aaron Wood2016-07-201-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Escape LIKE parameter * Use correct method in the AbstractMapping class * Change the getNamesBySearch method so that input can be properly escaped while still supporting matches * Don't escape hardcoded wildcard
* / Cast share id to string (#25402)Vincent Petry2016-07-201-1/+1
|/
* Merge pull request #405 from nextcloud/theming-fixesBjörn Schießle2016-07-182-2/+2
|\ | | | | Theming fixes
| * Use the themed Defaults everywhereJoas Schilling2016-07-152-2/+2
| |
* | PasswordLoginForbidden is not a FATAL exceptionRoeland Jago Douma2016-07-141-0/+3
|/ | | | | | | It is just a 'Sabre\DAV\Exception\NotAuthenticated' exception with some special meaning. So just log it as DEBUG and not as FATAL.
* fix error messageBjoern Schiessle2016-06-301-1/+1
|
* Add proper throws PHP docsLukas Reschke2016-06-301-2/+13
|
* Add required $message parameterLukas Reschke2016-06-301-2/+2
|
* add some additonal permission checks to the webdav backendBjoern Schiessle2016-06-301-1/+16
|
* PasswordLoginForbidden must extend NotAuthenticatedVincent Petry2016-06-171-2/+2
| | | | | | The auth code from Sabre will forward NotAuthenticated exceptions but in the case of a generic exception, it is packaged as "service not available".
* throw PasswordLoginForbidden on DAVChristoph Wurst2016-06-172-2/+56
|
* add PasswordLoginForbiddenExceptionChristoph Wurst2016-06-171-6/+13
|
* create session token on all APIsChristoph Wurst2016-06-131-2/+1
|
* Merge pull request #25046 from owncloud/fix-the-realmVincent Petry2016-06-103-4/+12
|\ | | | | Use the correct realm for basic authentication