aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* Refactor writeObject to only use MultipartUpload when requiredBernd Rederlechner2021-08-202-0/+105
| | | | | | Signed-off-by: Bernd Rederlechner <Bernd.Rederlechner@t-systems.com> Co-authored-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #28220 from ↵John Molakvoæ2021-08-091-68/+30
|\ | | | | | | nextcloud/get-by-id-multiple-mounts-single-storage
| * fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-07-281-68/+30
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add test for searching within a "root jail"Robin Appelman2021-07-281-0/+18
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Run s3 tests againJulius Härtl2021-06-301-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* split of query building bits from searchhelperRobin Appelman2021-06-141-20/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update tests and fix some edge cases around new searchRobin Appelman2021-06-141-77/+69
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-142-3/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #26322 from nextcloud/recent-searchJulius Härtl2021-05-181-0/+13
|\ | | | | Use file search for recent files and optimize getting share types
| * adjust testsRobin Appelman2021-04-211-0/+13
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | set mimetype for objects uploaded to object storagesRobin Appelman2021-04-213-4/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #24966 from nextcloud/jknockaert-patch-1Lukas Reschke2021-04-061-4/+14
|\ | | | | avoid fread on directories and unencrypted files
| * Update EncryptionTest.phpJasper Knockaert2021-01-051-3/+3
| |
| * 2nd attempt to fix testsJasper Knockaert2021-01-051-7/+11
| |
| * attemtp to fix testJasper Knockaert2021-01-051-1/+7
| |
* | Set umask before operations that create local filesRobin Appelman2021-03-231-3/+34
| | | | | | | | | | | | this solves issues where "other php stuff" is messing with the umask Signed-off-by: Robin Appelman <robin@icewind.nl>
* | handle ordering in folder searchRobin Appelman2021-03-191-20/+34
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | folder filtering in sqlRobin Appelman2021-03-191-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | cleanup fileinfo creationRobin Appelman2021-03-191-60/+30
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | handle limit and offset in folder file searchRobin Appelman2021-03-181-41/+157
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only require user to be set in a query that handles tagsRobin Appelman2021-03-181-16/+11
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-151-0/+70
|\ \ | | | | | | do cachejail search filtering in sql
| * | fix search in nested jailsRobin Appelman2021-01-261-0/+18
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix cachjail searching for rootRobin Appelman2021-01-261-2/+17
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | do cachejail search filtering in sqlRobin Appelman2021-01-261-0/+37
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | apply object store copy optimization when 'cross storage' copy is within the ↵Robin Appelman2021-03-091-0/+24
| | | | | | | | | | | | | | | | | | same object store Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Add some typing to SharedStorageRoeland Jago Douma2021-03-041-5/+4
| | | | | | | | | | | | | | | | | | Makes psalm a bit more happy. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-185-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Cache the user backend info for 300sJoas Schilling2021-02-153-5/+28
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-082-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Properly handle result when copying with failure and throw in testsJulius Härtl2021-01-051-1/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix writeStream mockingJulius Härtl2021-01-051-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-301-1/+3
| | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use in objectstore copyRobin Appelman2020-11-243-0/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Don't leave cursors open when tests failJoas Schilling2020-11-092-2/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use query builder instead of OC_DB in OC\Files\*Joas Schilling2020-11-091-11/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix code styleMorris Jobke2020-09-091-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure tests cover the new mkdir behaviour on 0 quotaJulius Härtl2020-09-081-1/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke2020-08-1213-117/+117
| | | | | | \PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add config option to enable multibucket preview distributionMorris Jobke2020-08-061-14/+21
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Mount the old previews in a separate folder for the multi bucket setup and ↵Morris Jobke2020-08-061-0/+106
| | | | | | check in them before using the actual locations Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use exceptions for error signaling in writeStreamRobin Appelman2020-07-231-1/+0
| | | | | | this remove the ambiguity when writing zero length files Signed-off-by: Robin Appelman <robin@icewind.nl>
* rollback cache rename if trashbin move failsRobin Appelman2020-07-231-7/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #21360 from nextcloud/root-storage-prevent-scanningRoeland Jago Douma2020-07-021-0/+59
|\ | | | | prevent the root storage from accidentally scanning user folders
| * prevent the root storage from accidentally scanning user foldersRobin Appelman2020-06-111-0/+59
| | | | | | | | | | | | | | while this scan *should* never be triggered, it's good to have some failsafe to ensure that the users home contents don't end up getting scanned in the root storage Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix testsJoas Schilling2020-06-241-1/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update share type constant usageJoas Schilling2020-06-241-5/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-38/+97
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix getDirectoryContent implementation for Jail wrapperRobin Appelman2020-04-301-0/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Run cs:fix and fix HashWrapper codeMorris Jobke2020-04-151-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>