summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-171-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Deprecate TemplateManagerJulius Härtl2019-10-161-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #17276 from nextcloud/storage-id-eqRoeland Jago Douma2019-10-092-2/+10
|\ | | | | Get single storage id using `eq` instead of `in`
| * use eq instead of in for loading single storageRobin Appelman2019-09-261-1/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * log which storage id can't be insertedRobin Appelman2019-09-261-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #17264 from nextcloud/move-from-storage-wrappersRoeland Jago Douma2019-09-262-1/+37
|\ \ | |/ |/| handle moveFromStorage within the same storage even when storage wrap…
| * handle moveFromStorage within the same storage even when storage wrappers ↵Robin Appelman2019-09-252-1/+37
| | | | | | | | | | | | | | | | | | | | are applied to the source storage the target storage doesn't need additional handling for wrappers as the wrappers implementation of moveFromStorage already deals with that Any storage based on local storage isn't affected by this as local storage already has it's own way of handling with this Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #17262 from nextcloud/objectstore-remove-cache-on-deleteRoeland Jago Douma2019-09-261-3/+11
|\ \ | | | | | | dont delete cache entries if deleting an object from object store failed
| * | dont delete cache entries if deleting an object from object store failedRobin Appelman2019-09-251-3/+11
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix getById for files in appdata and the root mountJoas Schilling2019-09-171-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | In case the path we are currently in is inside the appdata_* folder, the original getById method does not work, because it can only look inside the user's mount points. But the user has no mount point for the root storage. So in that case we directly check the mount of the root if it contains the id. If it does we check if the path is inside the path we are working in. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | emit file events via Dispatcher, tooArthur Schiwon2019-09-094-21/+39
| | | | | | | | | | | | another step to get rid of hooks and emitters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #16836 from nextcloud/fix/16724/smb-availabilityRoeland Jago Douma2019-09-092-109/+102
|\ \ | |/ |/| Fix SMB availability status + higher delay on auth issues
| * set a storage availability delay on auth issues to avoid lock outArthur Schiwon2019-08-222-109/+102
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Return the proper jailed path when requesting the root pathJulius Härtl2019-09-041-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Undefined variable response when server is no nextcloud anymoreJoas Schilling2019-08-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #15946 from martink-p/bugxfix/9792/encrypted-external-webdavRoeland Jago Douma2019-08-151-2/+27
|\ | | | | Update Encryption.php
| * Update Encryption.phpmartink-p2019-06-171-7/+9
| | | | | | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
| * Update Encryption.phpmartink-p2019-06-171-1/+7
| | | | | | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
| * Apply suggestions from code reviewmartink-p2019-06-171-5/+5
| | | | | | | | | | Co-Authored-By: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
| * Update Encryption.phpmartink-p2019-06-171-2/+19
| | | | | | | | Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
* | Properly return an int in the getId function of the cacheRoeland Jago Douma2019-08-071-1/+1
| | | | | | | | | | | | fixes #16684 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16502 from nextcloud/bugfix/16474Morris Jobke2019-07-291-1/+6
|\ \ | | | | | | Check the if we can actually access the storage cache for recent files
| * | Add additional check for read permissionsJulius Härtl2019-07-241-1/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Check the if we can actually access the storage cache for recent filesJulius Härtl2019-07-241-0/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Fix typo in commentMorris Jobke2019-07-291-1/+1
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #16570 from nextcloud/enh/supress_touch_errorRoeland Jago Douma2019-07-291-2/+2
|\ \ \ | | | | | | | | Supress warnings touch can generate
| * | | Supress warnings touch can generateRoeland Jago Douma2019-07-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We already catch the result value. Having the warning being logged explicitly doesn't help and polutes the log. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | | Merge pull request #16558 from nextcloud/enh/less_verbose_locked_loggingRoeland Jago Douma2019-07-271-3/+3
|\ \ \ \ | |/ / / |/| | | Do not log all locked exceptions
| * | | Do not log all locked exceptionsRoeland Jago Douma2019-07-261-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | This can happen for valid reasons (multiple users writing at the same time) with for example the text app. Apps should properly handle it. No reason to log it by default. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / / Remove deprecated searchByTagRoeland Jago Douma2019-07-264-74/+0
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #16440 from marcelklehr/fix/objectstorage-put-contentsMorris Jobke2019-07-171-4/+4
|\ \ | | | | | | Fix File#putContents(string) on ObjectStorage
| * | Fix File#putContents(string) on ObjectStorageMarcel Klehr2019-07-171-4/+4
| | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | Do not keep searching for recentRoeland Jago Douma2019-07-161-1/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If userA has a lot of recent files. But only shares 1 file with userB (that has no files at all). We could keep searching until we run out of recent files for userA. Now assume the inactive userB has 20 incomming shares like that from different users. getRecent then basically keeps consuming huge amounts of resources and with each iteration the load on the DB increases (because of the offset). This makes sure we do not get more than 3 times the limit we search for or more than 5 queries. This means we might miss some recent entries but we should fix that separatly. This is just to make sure the load on the DB stays sane. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use HTTP1.1 to read S3 objectsRoeland Jago Douma2019-07-101-0/+1
| | | | | | | | | | | | | | | | Some of the READs otherwise use HTTP/1.0 which is not always supported by all backends. HTTP/1.1 is there since 1999 way longer than S3 so safe to assume it is always there IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Mimetype list integrity check should not fail if it's changed (#15810)John Molakvoæ2019-07-071-0/+6
|\ \ | | | | | | Mimetype list integrity check should not fail if it's changed
| * | Do not fail integrity check if mimetype list is changedXheni Myrtaj2019-05-291-0/+6
| |/ | | | | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* | Merge pull request #16107 from nextcloud/local-check-pathRoeland Jago Douma2019-06-271-0/+21
|\ \ | | | | | | verify that paths are valid for recursive local move
| * | verify that paths are valid for recursive local moveRobin Appelman2019-06-271-0/+21
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #15832 from ↵Roeland Jago Douma2019-06-251-2/+2
|\ \ \ | |/ / |/| | | | | | | | nextcloud/bugfix/noid/fulltext-search-groupfolders Fix full text search for groupfolders
| * | Fix full text search for groupfoldersMorris Jobke2019-06-171-2/+2
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / handle storage exceptions when trying to set mtimeRobin Appelman2019-06-061-1/+6
|/ | | | | | | not all storage backends can handle setting the mtime and they might not always handle that error correctly. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #15776 from nextcloud/get-by-id-shares-lastRoeland Jago Douma2019-05-291-0/+8
|\ | | | | search files by id in shared storages last
| * search files by id in shared storages lastRobin Appelman2019-05-281-0/+8
| | | | | | | | | | | | this prevents unneeded recursion when the file is not in the share Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Check for free space on touchJulius Härtl2019-05-282-3/+14
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #15715 from nextcloud/s3-bucket-nameMorris Jobke2019-05-241-1/+4
|\ | | | | Allow other code to use the s3 client from object store
| * add method to get bucket name from s3 storageRobin Appelman2019-05-241-1/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | make ObjectStoreStorage::getURN publicRobin Appelman2019-05-221-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add method to get the used object store from the storageRobin Appelman2019-05-211-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove extra param in cache update callRobin Appelman2019-05-071-2/+2
| | | | | | param was leftover from earlier iterations of the "update event" Signed-off-by: Robin Appelman <robin@icewind.nl>
* take return of mkdir into account, throw exception on failureArthur Schiwon2019-04-291-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>