summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 19Christoph Wurst2020-04-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-6/+2
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-313-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Sabre/DAV 4.0: beforeMethod is now beforeMethod:*Georg Ehrke2020-03-272-2/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use core templates for displaying dav errors in the browserArthur Schiwon2020-03-201-3/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix dav browser error page not styledArthur Schiwon2020-03-191-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add offset for home limited searchesRoeland Jago Douma2019-12-101-1/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-057-7/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow filtering the search results to the users home storageRobin Appelman2019-12-031-7/+75
| | | | | | | | | | | | | | | | | | | | This is done by adding a ```xml <d:eq> <d:prop> <oc:owner-id/> </d:prop> <d:literal>$userId</d:literal> </d:eq> ``` clause to the search query. Searching by `owner-id` can only be done with the current user id and the comparison can not be inside a `<d:not>` or `<d:or>` statement Signed-off-by: Robin Appelman <robin@icewind.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-224-2/+5
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cast timestamps older than unix epoch to 0Christian2018-08-271-1/+1
| | | This change solves issues #10870, which is caused by method castValue of class FileSearchBackend: It casts the timestamps older than the unix epoch to false., see my comment https://github.com/nextcloud/server/pull/10835#discussion_r212806153.
* disallow negative mtime in dav searchRobin Appelman2018-08-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix lazy search backendRobin Appelman2018-07-021-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix search related results in OPTIONS requestsRobin Appelman2018-06-281-0/+72
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use getUserFolder instead of getFileInfo when constructing FilesHomeRobin Appelman2018-05-242-7/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make displayname selectableRoeland Jago Douma2018-03-221-1/+1
| | | | It is dav. so if it is not properly set we just return a 404 anyway.
* Remove unused import statementsMorris Jobke2018-02-142-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* CacheJail should apply limit and offset after searchingRoeland Jago Douma2018-02-071-1/+1
| | | | | | Else the results might not be correct. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adjust to updated searchdav libraryRobin Appelman2018-02-071-67/+51
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Respect limit and order in webdav searchRoeland Jago Douma2018-02-071-3/+98
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-063-0/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* cache nodes from search resultsRobin Appelman2017-08-261-6/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* [DAV] Fix URLUtil::splitPath usageRoeland Jago Douma2017-08-012-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Stop if user folder is not availableMorris Jobke2017-05-091-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow searching file by fileidRobin Appelman2017-04-051-3/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* OCA\DAV\Files\CustomPropertiesBackend -> OCA\DAV\DAV\CustomPropertiesBackendGeorg Ehrke2017-03-271-291/+0
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* allow sharees to edit certain calendar properties for themselvesGeorg Ehrke2017-03-271-0/+22
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* safer casting of datetimeRobin Appelman2017-03-141-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix searching and ordering on getlastmodifiedRobin Appelman2017-03-131-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Allow searching for favoritesRobin Appelman2017-03-081-5/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add tests for filesearchbackendRobin Appelman2017-03-011-7/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement webdav SEARCHRobin Appelman2017-03-011-6/+198
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add icewind/searchdavRobin Appelman2017-02-281-0/+76
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix "Call to a member function getUID() on null"Thomas Müller2016-12-191-0/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Harden files dropRoeland Jago Douma2016-12-021-20/+10
| | | | | | | | * Fail on MKCOL * Only take filename ignore directories * No need to parse query parameters Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fixes files_drop for sabre 3.2Roeland Jago Douma2016-11-101-2/+2
| | | | | | | | In the new sabre (3.2) the order of beforeMethod is switched. it used to be that beforeMethod:METHOD was called after beforeMethod. But now it is called before. Since we need the view this was broken. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update sabre dav to 3.2 (#26115)Thomas Müller2016-11-041-1/+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>
* Remove any detailed information about the exception in the browser error pluginThomas Müller2016-10-251-11/+2
|
* Only enable files_drop plugin when we actuall do files_dropRoeland Jago Douma2016-10-241-4/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make files_drop workRoeland Jago Douma2016-10-241-0/+82
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix permision maskRoeland Jago Douma2016-10-241-0/+0
| | | | | | | If we move a file from the temp part file to the original file we don't need update permissions. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* FilesHome now also returns DAV propertiesVincent Petry2016-09-262-52/+16
| | | | | | | | | | | | | | 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>
* Don't print exception message in HTMLLukas Reschke2016-09-091-4/+3
| | | | | | The exception message is potentially influenced by user input and could thus be confusing (e.g. somebody could try to open a file like "Please send a mail to support@foo.com", and then the message would include that string. It is thus reasonable to not show the exception message by default. Also for the browser view I added an `exit()` at the end, as otherwise the XML exception would be attached.
* Update with robinJoas Schilling2016-07-212-2/+2
|
* Fix apps/Joas Schilling2016-07-215-5/+11
|
* Fix type hintingRobin Appelman2016-07-081-1/+1
|