summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * Improve mimetype detection for object storagesMorris Jobke2017-10-261-0/+2
| | | | | | | | | | | | Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use ::class in test mocks of encryption appMorris Jobke2017-10-261-4/+4
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use ::class in test mocks of dav appMorris Jobke2017-10-264-7/+8
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class in test mocksMorris Jobke2017-10-246-22/+31
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for multipart uploadRobin Appelman2017-09-211-4/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Cleanup unused methodsMorris Jobke2017-08-151-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6123 from nextcloud/cleanup-shareItemMorris Jobke2017-08-151-1/+1
|\ | | | | Cleanup usage of shareItem in internal code base
| * Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-151-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use proper methods for registerBackendMorris Jobke2017-08-151-2/+2
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix CacheTestRoeland Jago Douma2017-08-091-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix encryption testRoeland Jago Douma2017-08-091-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Can not insert auto increment on oracleJoas Schilling2017-08-021-18/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix missing escape on column and table nameJoas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace wrong PHPDocsLukas Reschke2017-08-011-2/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* add tests for renaming paths with multibyte utf8 charactersRobin Appelman2017-07-221-36/+38
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix scan permissions with nested permissions masksRobin Appelman2017-07-131-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #5424 from nextcloud/moveFromCache-from-sharedMorris Jobke2017-07-061-0/+50
|\ | | | | fix moving folders out of a cache jail
| * fix moving folders out of a cache jailRobin Appelman2017-06-151-0/+50
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | update file system tests to take the master key into accountBjoern Schiessle2017-07-062-15/+25
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | show used space in user listRobin Appelman2017-06-151-2/+33
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use unmasked permissions during scanningRobin Appelman2017-05-181-0/+47
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add unit tests for mounts of delete usersJoas Schilling2017-04-241-0/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure we use a new encryption module all the timeJoas Schilling2017-04-201-7/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Simplify the testJoas Schilling2017-04-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Optimize put - Dont try to fetch filecache for not existing filecache in ↵Piotr M2017-04-121-4/+9
| | | | encription
* Dont use the permissions mask while scanningRobin Appelman2017-04-101-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* round the mtime in touchRobin Appelman2017-03-271-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move error message to log entryLukas Reschke2017-03-201-0/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Cleanup testJoas Schilling2017-03-171-254/+266
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix unit testJoas Schilling2017-03-171-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Redirect unlink to rmdir (#27101)Vincent Petry2017-03-161-0/+24
| | | | | | | Many API callers will call unlink even for directories and it can mess up with some wrappers like the encryption wrapper Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow searching for favoritesRobin Appelman2017-03-081-6/+64
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add tests for filesearchbackendRobin Appelman2017-03-011-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add tests for searchQueryRobin Appelman2017-03-011-15/+59
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Implement webdav SEARCHRobin Appelman2017-03-011-0/+173
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add icewind/searchdavRobin Appelman2017-02-281-0/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #3030 from nextcloud/filesapi-renamefailcaseMorris Jobke2017-01-243-532/+483
|\ | | | | Fix files node API failed rename/copy
| * Add tests for move/copy hooks in Node APIVincent Petry2017-01-121-0/+81
| | | | | | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
| * Fix files node API failed rename/copyVincent Petry2017-01-122-4/+46
| | | | | | | | | | | | | | Whenever a rename or copy operation failed on the view, we must throw an exception instead of just ignoring. Signed-off-by: Vincent Petry <pvince81@owncloud.com>
| * Refactor files node API for more code reuseVincent Petry2017-01-113-530/+358
| | | | | | | | Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* | Mimetype detection for hidden filesMagnus Walbeck2017-01-231-0/+4
|/ | | | Signed-off-by: Magnus Walbeck <mw@mwalbeck.org>
* Only check for local shared storagesRoeland Jago Douma2017-01-101-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Skip local shares in bkg scan and occ files:scan (#26590)Vincent Petry2017-01-101-0/+20
| | | | | Local shares should only be scanned when doing it for the owner to avoid repeatedly rescanning the same shared storage over and over again for every recipient.
* Merge pull request #2934 from nextcloud/quota-stream-non-globalRoeland Jago Douma2017-01-061-4/+1
|\ | | | | remove the need to register the quota streamwrapper globally
| * remove the need to register the quota streamwrapper globallyRobin Appelman2017-01-041-4/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | remove static:// stream wrapperRobin Appelman2017-01-041-70/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust testRobin Appelman2017-01-021-4/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add ci support for s3 object storeRobin Appelman2017-01-021-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove legacy home testsVincent Petry2016-12-231-31/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Nuke the legacy storage fallback from orbitVincent Petry2016-12-231-8/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>