summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Handle OC-Total-Length in new chunkingThomas Müller2017-12-151-57/+0
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocks of dav appMorris Jobke2017-10-261-6/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-241-9/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix unit testJoas Schilling2017-06-071-4/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly handle missing READ permissionVincent Petry2017-04-271-5/+50
|
* Fix FutureFile MOVE to keep destination nodeVincent Petry2017-04-261-0/+63
| | | | | | Sabre usually deletes the target node on MOVE before proceeding with the actual move operation. This fix prevents this to happen in case the source node is a FutureFile.
* Fixed size issues on main detail view and disappearing of share recipients ↵Michael Jobst2016-12-231-2/+0
| | | | | | | | | | | | | | | | | | (#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>
* Remove unused $view from FilesPlugin (#26549)Vincent Petry2016-11-141-13/+1
| | | | The Sabre FilesPlugin never uses the view so remove it.
* Update sabre dav to 3.2 (#26115)Thomas Müller2016-11-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | * 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-81/+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.
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-2/+83
| | | | | | | | | | | | | | - 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>
* FilesHome now also returns DAV propertiesVincent Petry2016-09-261-52/+0
| | | | | | | | | | | | | | 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>
* [master] DAV: Return data-fingerprint always when asked (#25482)Markus Goetz2016-08-291-2/+4
| | | | | | | 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.
* add dav property to check if a file has a preview availableRobin Appelman2016-07-271-1/+43
|
* Fix apps/Joas Schilling2016-07-211-3/+4
|
* Fix PHPUnit 5.4 warnings in DAV appRoeland Jago Douma2016-07-151-3/+9
| | | | * getMock is deprecated
* DAV now returns file name with Content-Disposition headerVincent Petry2016-06-091-1/+65
| | | | | Fixes issue where Chrome would append ".txt" to XML files when downloaded in the web UI
* Fix checkMove() implementation for dav v2 - fixes #24776 (#24971)Thomas Müller2016-06-061-22/+38
|
* Update license headersLukas Reschke2016-05-261-0/+2
|
* Update DAV unit tests to PSR-4Joas Schilling2016-05-251-0/+469