summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* only create the file cache entry after the empty file was created ↵Bjoern Schiessle2017-11-171-14/+13
| | | | | | successfully, otherwise file_exists() call on the initial file_put_content() will indicate that the file already exists Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use non empty files for object store touchRobin Appelman2017-11-151-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix contructing headers for s3 downloadRobin Appelman2017-11-151-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve performance of UserMountCache with external storage foldersDariusz Olszewski2017-11-091-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7082 from nextcloud/12-6974Morris Jobke2017-11-061-2/+22
|\ | | | | [stable12] Fix seeking on object storage
| * Fix seeking on object storageMorris Jobke2017-11-061-2/+22
| | | | | | | | | | | | Seeking is not needed if the $from is 0, because then the pointer is already at the correct position. Additionally another fallback is added, that if the fseek fails it just uses an fread to skip the beginning of the file until it is at the correct position. This skipping is done with a chunked fread. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #7081 from nextcloud/12-6958Morris Jobke2017-11-062-1/+13
|\ \ | | | | | | [stable12] Improve mimetype detection for object storages
| * | Improve mimetype detection for object storagesMorris Jobke2017-11-062-1/+13
| |/ | | | | | | | | | | 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 fopen directly when reading objects from s3Robin Appelman2017-11-061-5/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix uninitialized variable $this->paramsWilliam Pain2017-10-251-2/+2
| | | | Signed-off-by: William Pain <pain.william@gmail.com>
* propagate multipart upload exception when aborting uploadRobin Appelman2017-10-171-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #6814 from nextcloud/upload-cache-path-12Roeland Jago Douma2017-10-151-1/+3
|\ | | | | [12] also use configured 'cache_path' for new chunking
| * also use configured 'cache_path' for new chunkingRobin Appelman2017-10-111-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | set s3 part size to 500mbRobin Appelman2017-10-111-1/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for multipart uploadRobin Appelman2017-10-091-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only do multipart upload for large filesRobin Appelman2017-10-091-0/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* multipart upload for s3 object storageRobin Appelman2017-10-091-5/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix path styleRobin Appelman2017-10-031-3/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* reuse object read/write/delete logic in s3 implementationsRobin Appelman2017-10-032-49/+83
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update aws sdk and move it to 3rdpartyRobin Appelman2017-10-032-40/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Don't lock in the appdata_ directoryJoas Schilling2017-09-111-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Still throw a locked exception when the path is not relative to $user/files/Joas Schilling2017-09-111-5/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix copy from jailed storageRoeland Jago Douma2017-08-101-0/+6
| | | | | | | If we have a jailed storage we must also fix the internal path on copy. Else we pass in the wrong path. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [Stable 12] Removed cast to integer in getSizeSebastian Kostka2017-07-291-1/+1
| | | | | | Fixes - Wrong or no sizes of files/folders #5031 for 32-bit systems a direct cast to integer causes problems. Backport from #5744 Signed-off-by: Sebastian Kostka <sebastian.kostka@gmail.com>
* Fix for mb strlenArtem Kochnev2017-07-221-1/+1
| | | Error with moving files with long names in UTF-8
* Merge pull request #5757 from nextcloud/mount-rename-12Morris Jobke2017-07-211-8/+12
|\ | | | | [12] Fix renaming of non-renamble mounts
| * non movable mounts can not be movedRobin Appelman2017-07-171-8/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-191-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #5710 from nextcloud/nested-permissions-mask-12Morris Jobke2017-07-131-1/+1
|\ | | | | [12] Fix scan permissions with nested permissions masks
| * Fix scan permissions with nested permissions masksRobin Appelman2017-07-131-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix moving folders out of a cache jailRobin Appelman2017-07-131-1/+11
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix propagating changes within jail wrapperRobin Appelman2017-07-112-0/+57
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* improved logging of objectore errorsRobin Appelman2017-07-041-5/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixed a crash caused by Local::copyFromStorage() not conforming to ↵Michael Munger2017-06-131-1/+1
| | | | Common::copyFromStorage. Issue# 5071
* Merge pull request #4792 from nextcloud/fix-storage-wrappers-on-scannerLukas Reschke2017-05-193-2/+10
|\ | | | | Make sure we use the passed-in storage when there is one
| * use unmasked permissions during scanningRobin Appelman2017-05-183-1/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Make sure we use the passed-in storage when there is oneJoas Schilling2017-05-101-1/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Revert "fix permissions of mountpoints - take 2"Morris Jobke2017-05-151-6/+2
| |
* | Merge pull request #4685 from nextcloud/fix_4683Morris Jobke2017-05-151-2/+6
|\ \ | | | | | | fix permissions of mountpoints - take 2
| * | Revert "Revert "fix permissions of mountpoints""Roeland Jago Douma2017-05-041-2/+6
| | | | | | | | | | | | | | | | | | This reverts commit 70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | Fix variable namesJoas Schilling2017-05-151-6/+6
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Fix order of parameter and escapingJoas Schilling2017-05-121-2/+2
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Actually we want to update the mimetype of all files ending with the suffixJoas Schilling2017-05-111-3/+4
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | don´t change folders with --repair-filecacheRello2017-05-111-0/+4
| |/ |/| | | check if folder is "httpd/unix-directory" and don´t perform here #27585
* | Proper exception for upload of .htaccess file via WebDAVMorris Jobke2017-05-081-1/+5
|/ | | | | | * fixes #2860 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Revert "fix permissions of mountpoints"Morris Jobke2017-05-041-6/+2
|
* fix permissions of mountpointsRobin Appelman2017-05-011-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow apps to set custom mount typesRobin Appelman2017-04-281-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #4524 from nextcloud/downstream-27508Roeland Jago Douma2017-04-281-1/+1
|\ | | | | Keep file id on move
| * Moved unit tests from ObjectTree::move to DirectoryVincent Petry2017-04-261-1/+1
| |