aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* test: add test for jail watcherRobin Appelman2024-04-101-0/+30
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add test for updating etag with unchanged mtime in child folderRobin Appelman2024-01-311-0/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add test for updating etag with unchanged mtimeRobin Appelman2024-01-311-0/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-238-24/+24
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-0/+38
| | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* optimize UserMountCache::registerStorageRobin Appelman2023-11-161-14/+18
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* optimize isShared and isMountedRobin Appelman2023-11-081-4/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #40499 from nextcloud/known-mtime-wrapperRobin Appelman2023-09-211-0/+70
|\ | | | | add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * apply known mtime wrapper for external storagesRobin Appelman2023-09-191-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-09-191-0/+71
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test: add test for cache mount providerDaniel Kesselberg2023-09-201-0/+108
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-2/+3
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-2/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #39707 from ↵Simon L2023-09-041-0/+11
|\ \ | | | | | | | | | nextcloud/bugfix/39706/local-ext-storage-unavailable-mode
| * | Allow ext storage Local to go unavailableVincent Petry2023-08-291-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Whenever an external storage of type Local points at a non-existing directory, process this as a StorageNotAvailable instead of returning 404. This makes desktop clients ignore the folder instead of deleting it when it becomes unavailable. The code change was limited to external storages to avoid issues during setup and with the default home storage. Signed-off-by: Vincent Petry <pvince81@yahoo.fr>
* | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-2/+0
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | update testsRobin Appelman2023-08-311-46/+10
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-08-181-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | tests: Add test for CacheEntry gettersFerdinand Thiessen2023-08-161-0/+25
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Fix setting static property in tests on PHP 8.3Côme Chilliet2023-08-141-2/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-275-11/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-12/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: ugly type jugglingArthur Schiwon2023-06-211-3/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-16/+26
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-204-125/+67
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * tests: Adapt node related unit tests mocks to required root viewJulius Härtl2023-04-174-126/+66
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Use proper path when creating node instancesJulius Härtl2023-04-171-0/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Adapt tests to config value typingCôme Chilliet2023-04-052-4/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove unused method getLocalFolderCôme Chilliet2023-04-031-1/+0
| | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-031-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* more filesystem setup performance instrumentationRobin Appelman2023-02-101-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-081-0/+3
|\
| * fix testsRobin Appelman2023-02-071-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix filesize return type error in ViewTestCôme Chilliet2023-02-071-4/+16
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix hookconnector testsLouis Chemineau2023-01-261-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* composer run cs:fixCôme Chilliet2023-01-2013-28/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix gzip mimetype mappingCôme Chilliet2023-01-201-2/+2
| | | | | | PHP now detects it as application/gzip and not application/x-gzip anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove workarounds specific to 7.4Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Also update the unencrypted size of files when creating them with empty contentJulius Härtl2022-12-071-9/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* test disabling write checkRobin Appelman2022-10-262-0/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix testsJohn Molakvoæ2022-10-141-0/+19
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* add test for trying to fopen a file which no longer exists on diskRobin Appelman2022-09-291-0/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix using FSEEK_END with SeekableHttpStream to get file sizeRobin Appelman2022-09-153-0/+33
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #33788 from nextcloud/improve-recentCarl Schwan2022-09-081-4/+4
|\ | | | | Improve getting recent files performance
| * Filter out old files when trying to get recent filesCarl Schwan2022-09-051-4/+4
| | | | | | | | | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #33600 from nextcloud/lazy-quotablizzz2022-09-071-84/+0
|\ \ | |/ |/| get quota for user only when needed
| * get quota for user only when neededRobin Appelman2022-09-011-84/+0
| | | | | | | | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only pass parent if paths matchJulius Härtl2022-08-241-3/+33
| | | | | | | | | | | | | | As the user folder might be initialized by the root from two levels down the hierarchy, passing this as a parent only works if the path matches Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-241-2/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>