summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #14175 from skydiablo/masterMorris Jobke2019-03-051-0/+1
|\ | | | | Fix ObjectStorage expired token (v3)
| * Update SwiftFactory.phpVolker2019-02-131-0/+1
| | | | | | Auth-Service (in explizit v3) will recheck the cached-token and will end in an "token expired exception".
* | Properly handle null as ownerId if file system access is denied by access tokenJulius Härtl2019-03-011-2/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add dispatcher events to User and Group objectsJoas Schilling2019-03-011-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #14254 from sparrowjack63/masterRoeland Jago Douma2019-03-011-4/+7
|\ \ | | | | | | Dont check Bucket Name in Nextcloud
| * | Bucket name - Alert in debug modeS. Cat2019-03-011-1/+1
| | | | | | | | | | | | | | | | | | Alert in debug mode only when trying to mount non compatible DNS bucket name (in order to not flood the logs) Signed-off-by: Sébastien Cat <sebastien.cat@inra.fr>
| * | Correct code indentS. Cat2019-03-011-5/+5
| | | | | | | | | | | | | | | | | | Just correct code indent. Signed-off-by: Sébastien Cat <sebastien.cat@inra.fr>
| * | Warning on S3 not compatible DNS bucket nameS. Cat2019-03-011-4/+11
| | | | | | | | | | | | | | | | | | The new created bucket should respect the DNS compatibility, nevertheless, Nextcloud should accept to mount "old created" buckets that does not respect DNS compatibility (Backward compatibility, or compatibility with CEPH). Signed-off-by: Sébastien Cat <sebastien.cat@inra.fr>
| * | Dont check Bucket Name in NextcloudSebastien Cat2019-03-011-4/+0
| | | | | | | | | | | | | | | Signed-off-by: Sebastien Cat <sparrow.jack63@gmail.com> Signed-off-by: Sébastien Cat <sebastien.cat@inra.fr>
* | | add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-276-11/+25
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #14269 from nextcloud/cache-update-eventMorris Jobke2019-02-192-1/+75
|\ \ \ | | | | | | | | add event for cache update
| * | | add event for cache updateRobin Appelman2019-02-182-1/+75
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #14210 from nextcloud/fix/14192/fix_empty_uploadsRoeland Jago Douma2019-02-181-2/+23
|\ \ \ \ | |/ / / |/| | | Fix empty file uploads to S3 (and other streaming storages)
| * | | Fix empty file uploads to S3Roeland Jago Douma2019-02-151-2/+23
| |/ / | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / / Use CountWrapper instead of almost identical CountReadStreamRoeland Jago Douma2019-02-152-67/+2
|/ / | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Filter out versions and trashbinRoeland Jago Douma2019-02-131-0/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Loop for the recent searchRoeland Jago Douma2019-02-131-3/+26
| | | | | | | | | | | | Else it might happen that less entries than requested are returned Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | We need to initialize the storage else the jailed path is always nullRoeland Jago Douma2019-02-131-0/+4
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #13748 from nextcloud/cache-insert-eventMorris Jobke2019-02-072-10/+18
|\ | | | | add event for inserting cache entries
| * add event for inserting cache entriesRobin Appelman2019-02-072-10/+18
| | | | | | | | | | | | | | | | this provides a reliable way for apps to listen to new files without the need to of cache wrappers to hook into inserts themselves (something which isn't 100% reliable) Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix: Check if `$this->params['user']` is an arrayWilliam Pain2019-02-051-1/+1
|/ | | | Signed-off-by: William Pain <pain.william@gmail.com>
* always use multipart uploader for s3 uploadsRobin Appelman2019-01-281-2/+5
| | | | | | the multipart uploader handles non seekable streams while `upload` does not Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #13739 from nextcloud/cache-cleanup-changeMorris Jobke2019-01-221-1/+7
|\ | | | | cleanup shared lock if changing to exclusive lock failed
| * cleanup shared lock if changing to exclusive lock failedRobin Appelman2019-01-221-1/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #13468 from rummatee/issue13276Morris Jobke2019-01-141-1/+0
|\ \ | | | | | | don't close input stream when writing in encrypted file
| * | don't close input stream when writing in encrypted fileFlorian Schunk2019-01-101-1/+0
| |/ | | | | | | Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
* | Merge pull request #13032 from nextcloud/objectstore-write-existsMorris Jobke2019-01-145-5/+40
|\ \ | | | | | | upload new files in objectstore to a .part path first
| * | upload new files in objectstore to a .part path firstRobin Appelman2018-12-121-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | This prevent the object store and cache from getting out of sync when an objectstore silently fails or the php process get's killed during the upload without giving us the chance to cleanup Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Add objectExists to objectstore interfaceRobin Appelman2018-12-124-0/+23
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Cache tokens when using swift's v2 authenticationRobin Appelman2019-01-132-17/+86
| |/ |/| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Followup 12833, gracefully handle the getting of /Roeland Jago Douma2018-12-211-2/+7
| | | | | | | | | | | | Else this breaks the app page Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #12883 from nextcloud/appdata-performanceJoas Schilling2018-12-172-26/+69
|\ \ | |/ |/| try to grab the appdata folder directly without going trough the whole tree
| * try to grab the appdata folder directly without going trough the whole treeRobin Appelman2018-12-062-26/+69
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #12865 from nextcloud/fix/do_not_propogate_in_appdataMorris Jobke2018-12-062-4/+14
|\ \ | | | | | | No need to propogate changes in appdata
| * | No need to propogate changes in appdataRoeland Jago Douma2018-12-052-4/+14
| |/ | | | | | | | | | | | | | | Right now we propogate a lof of changes in appdata. So for example we propogate each and every preview that is added to the system. This has no real added value as far as I can tell. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #12857 from nextcloud/fix/emit_write_update_once_on_touchMorris Jobke2018-12-051-1/+1
|\ \ | | | | | | Emit write update only once on touch
| * | Emit write update only once on touchRoeland Jago Douma2018-12-051-1/+1
| |/ | | | | | | | | | | | | | | When a touch is done (i.e. when creating a new file in the node API) The hooks contain 'write' and 'touch' (and the operation is touch as well). This would cause a double write update. Which doesn't make sense. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / Only execute query in propagateChange onceRoeland Jago Douma2018-12-051-2/+2
|/ | | | | | | The second execute statement should be inside the if block. Else it gets executed twice which makes no sense. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix folder path containing leading slash when getting mount root by idRobin Appelman2018-11-281-1/+1
| | | | | | | | This fixes collabora on public link shared groupfolders Fixes https://github.com/nextcloud/groupfolders/issues/225 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #12494 from nextcloud/cache-notfound-idMorris Jobke2018-11-201-0/+2
|\ | | | | return the correct value when trying to get a non existing item from cache by id
| * return the correct value when trying to get a non existing item from cache by idRobin Appelman2018-11-161-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add PHPDoc for thrown exceptionMorris Jobke2018-11-191-0/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | forward object not found error in switch as dav 404Robin Appelman2018-11-192-6/+23
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix string doc type casingChristoph Wurst2018-11-152-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-122-5/+5
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-082-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix UniqueConstraintViolationException while insert into oc_filecacheMorris Jobke2018-11-121-7/+18
|/ | | | | | | | * fixes #6160 by not being prone to the race condition in insertIfNotExists * fixes #12228 by not using a query that can result in a deadlock * replaces the insertIfNotExists call with an insert which is wrapped into a try-catch block Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly search the root of a shared external storageRoeland Jago Douma2018-11-051-1/+1
| | | | | | | | | | | Fixes #1020 When an external storage is shared with you in full the root is '' (empty). This adds an extra check for an empty jail basically. Because if the jail is on the empty string. It matches all paths. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* fix writeStream for jail wrapperRobin Appelman2018-10-312-0/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allways fall back to fopen for encryption wrapperRobin Appelman2018-10-312-1/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>