summaryrefslogtreecommitdiffstats
path: root/lib/private/files
Commit message (Collapse)AuthorAgeFilesLines
* Move lonely file from \OC\Files to PSR-4Roeland Jago Douma2016-05-011-69/+0
| | | | Conflicting PR probabaly caused this
* mount custom cache folder using mount providersRobin Appelman2016-04-291-0/+69
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-2465-18273/+0
|
* Merge pull request #24187 from ↵Thomas Müller2016-04-221-2/+2
|\ | | | | | | | | owncloud/fs-initmountpoint-rethrowifusernotfoundagain Mark $usersSetup only if user was found in initMountPoints
| * Mark $usersSetup only if user was found in initMountPointsVincent Petry2016-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | initMountPoints is marking a user as successfully initialized too early. If the user was not found an NoUserException was thrown, the second time initMountPoints is called would not rethrow the exception and happily continue. This fix makes sure that we consistently throw NoUserException when initMountPoints is called repeatedly with invalid users.
* | Merge pull request #24124 from owncloud/encryped-size-progationThomas Müller2016-04-222-1/+11
|\ \ | | | | | | dont do optimized size propagation for encrypted files
| * | dont do optimized size propagation for encrypted filesRobin Appelman2016-04-212-1/+11
| | |
* | | Merge pull request #23918 from owncloud/cruds-for-federated-sharesBjörn Schießle2016-04-221-1/+5
|\ \ \ | |_|/ |/| | bring back CRUDS permissions for federated shares
| * | if share-permissions exists we use this information as indicator to check if ↵Björn Schießle2016-04-201-0/+3
| | | | | | | | | | | | the file has changed or not
| * | ask for share-permissions on propfindBjörn Schießle2016-04-201-1/+2
| | |
* | | Throw NoUserException when attempting to init mount point for null userVincent Petry2016-04-221-0/+3
| |/ |/| | | | | | | | | | | In some scenarios initMountPoints is called with an empty user, and also there is no user in the session. In such cases, it is unsafe to let the code move on with an empty user.
* | Merge pull request #23919 from owncloud/cyclyc-share-dep-exampleThomas Müller2016-04-208-29/+171
|\ \ | | | | | | SharedStorage to new sharing code + cleanup
| * | Move moveFromCache to CacheJailRoeland Jago Douma2016-04-191-0/+16
| | |
| * | Move copy- and moveFromStorage to jailRoeland Jago Douma2016-04-191-0/+26
| | |
| * | Only construct the storage when we start using itRobin Appelman2016-04-194-16/+92
| | |
| * | Fix resolve pathRoeland Jago Douma2016-04-191-2/+7
| | |
| * | Fix related logicRoeland Jago Douma2016-04-192-2/+15
| | |
| * | cache the scanner/updater/cache in the wrapper storageRobin Appelman2016-04-192-12/+18
| |/
* | Merge pull request #24098 from owncloud/fix_23782Thomas Müller2016-04-201-0/+2
|\ \ | | | | | | When calling file_put_contents clear the checksum
| * | When the scanner detects a file is changed clear checksumRoeland Jago Douma2016-04-191-0/+2
| |/ | | | | | | | | | | | | | | | | Fixes #23782 and #23783 If the file scanner detects a changed file we clear the checksum while we update the cache. * Unit test added
* / preserve information if it is a rename operation or notBjörn Schießle2016-04-201-3/+4
|/
* Merge pull request #23561 from owncloud/background-scan-unscannedC. Montero Luque2016-04-141-19/+31
|\ | | | | handle completely unscanned storages in the background scanner
| * Merge branch 'master' into background-scan-unscannedC. Montero Luque2016-03-251-0/+4
| |\
| * | handle completely unscanned storages in the background scannerRobin Appelman2016-03-241-19/+31
| | |
* | | Add lazyRootFolderRoeland Jago Douma2016-04-131-0/+474
| | |
* | | Don't calculate permissions twice (#23917)Roeland Douma2016-04-121-1/+1
| | | | | | | | | | | | There is no need to calculate the permissions twice. Saves some is_dir and file_exists calls.
* | | Merge pull request #23860 from owncloud/followup-23304-opening-empty-fileThomas Müller2016-04-111-3/+9
|\ \ \ | | | | | | | | Correctly return an empty string for empty files
| * | | Correctly return an empty string for empty filesJoas Schilling2016-04-081-3/+9
| | | |
* | | | lib: Fix typos (found by codespell)Stefan Weil2016-04-077-7/+7
|/ / / | | | | | | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* | | Fix PHP memory leak in file_get_contents()Morris Jobke2016-04-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ref https://bugs.php.net/bug.php?id=61961 * ref https://github.com/owncloud/core/issues/20261#issuecomment-180000256 * code is based on the proposal of @chriseqipe * fixes #20261
* | | make sure that we always remove the file again from the cache after the ↵Bjoern Schiessle2016-03-311-0/+1
| | | | | | | | | | | | version was created
* | | Merge pull request #23445 from owncloud/enc_small_improvementFrank Karlitschek2016-03-311-1/+1
|\ \ \ | | | | | | | | small performance improvement: no need to calculate the header size
| * | | no need to calculate the header size, if the first block contain a header we ↵Bjoern Schiessle2016-03-211-1/+1
| | | | | | | | | | | | | | | | already know the size
* | | | Merge pull request #23707 from owncloud/make-sure-that-encrypted-version-is-setFrank Karlitschek2016-03-311-2/+7
|\ \ \ \ | | | | | | | | | | Make sure that the encrypted version is set
| * | | | Make sure that the encrypted version is setLukas Reschke2016-03-311-2/+7
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The code path called when using external storage with WebDAV is using `\OC\Files\Storage\Wrapper\Encryption::getMetaData` which did not contain the actual encrypted version inside the cache entry version. This lead to the following: 1. User uploaded a file 2. File is created and `\OC\Files\Storage\Wrapper\Encryption::getMetaData` is called. It has an empty `encryptedVersion` but sets `encrypted` to either `true` or `false`. 3. The call when updating the file cache will use the old version.
* / | | fix creation of versions of encrypted files on external storagesBjoern Schiessle2016-03-311-1/+20
|/ / / | | | | | | | | | | | | | | | in order to create a 1:1 copy of a file if a version gets created we need to store this information on copyBetweenStorage(). This allows us to by-pass the encryption wrapper if we read the source file.
* | | Merge pull request #23545 from owncloud/issue-17144-lock-mount-point-on-removalThomas Müller2016-03-241-0/+4
|\ \ \ | |_|/ |/| | Lock the mountpoint while removing
| * | Lock the mountpoint while removingJoas Schilling2016-03-241-0/+4
| | |
* | | add missing varJörn Friedrich Dreyer2016-03-241-0/+4
|/ /
* | Merge pull request #22506 from owncloud/node-get-from-cacheThomas Müller2016-03-232-26/+23
|\ \ | | | | | | Query the cache when checking if a node exists
| * | properly use fileinfo objectsRobin Appelman2016-03-211-16/+12
| | |
| * | improve reuse in getUserFolderRobin Appelman2016-03-211-6/+6
| | |
| * | pass the fileinfo to the node if availableRobin Appelman2016-03-211-2/+2
| | |
| * | Query the cache when checking if a node existsRobin Appelman2016-03-211-2/+3
| |/
* / Fix doc issue of cache wrapperJoas Schilling2016-03-211-1/+1
|/
* Ensure that stored version is at least 1 for cross-storage copyLukas Reschke2016-03-161-1/+12
| | | | | | | | | In case of a move operation from an unencrypted to an encrypted storage the old encrypted version would stay with "0" while the correct value would be "1". Thus we manually set the value to "1" for those cases. See also https://github.com/owncloud/core/issues/23078
* Merge pull request #23039 from owncloud/invalid-share-storageThomas Müller2016-03-152-0/+357
|\ | | | | dont break when there is an invalid share
| * move failedstorage to coreRobin Appelman2016-03-112-0/+357
| |
* | Verify the getResponse returns a ResponseInterfaceLukas Reschke2016-03-121-1/+3
|/ | | | | | Can also return `null` as per PHPDoc. Regression added by https://github.com/owncloud/core/commit/97f5c095f4018119e15d7c612a685da1dc91a340 Fixes https://github.com/owncloud/core/issues/23145
* Fix share mounting recursionVincent Petry2016-03-081-2/+7
|