summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-2418-5925/+0
|
* 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
| |
* | Merge pull request #23919 from owncloud/cyclyc-share-dep-exampleThomas Müller2016-04-203-13/+63
|\ \ | | | | | | SharedStorage to new sharing code + cleanup
| * | Move copy- and moveFromStorage to jailRoeland Jago Douma2016-04-191-0/+26
| | |
| * | Fix resolve pathRoeland Jago Douma2016-04-191-2/+7
| | |
| * | Fix related logicRoeland Jago Douma2016-04-191-1/+14
| | |
| * | cache the scanner/updater/cache in the wrapper storageRobin Appelman2016-04-192-12/+18
| |/
* / preserve information if it is a rename operation or notBjörn Schießle2016-04-201-3/+4
|/
* 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-074-4/+4
|/ | | | 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.
* 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-151-0/+215
|\ | | | | dont break when there is an invalid share
| * move failedstorage to coreRobin Appelman2016-03-111-0/+215
| |
* | 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 call to disk_free_space when a file is providedVincent Petry2016-03-071-1/+9
| | | | | | | | | In the case of shared files, we have to call free_space() on the file name. This has the side-effect that when uploading to a local storage without quota set, it will call disk_free_space with the file name, which fails. This fix uses the parent folder in case the given path is a file.
* Merge pull request #22816 from owncloud/external-unavailable-recheckThomas Müller2016-03-041-5/+12
|\ | | | | allow availability recheck for external storages
| * allow availability recheck for external storagesRobin Appelman2016-03-031-5/+12
| |
* | Keep "encryptedVersion" when calling `\OC\Files\View::copy`Lukas Reschke2016-03-031-9/+28
|/ | | | | | | | | | | | | | | | When calling `\OC\Files\View::copy` we should also keep the version to ensure that the file will always have the correct version attached and can be successfully decrypted. To test this the following steps are necessary (from https://github.com/owncloud/core/issues/22781#issuecomment-191328982): 1. setup a new ownCloud 9.0 beta2 2. enable encryption 2. upload a docx (5.7MB large) 3. upload the same file again and overwrite the existing file 4. I can download the original file and the first version 5. I restore the first version 6. restored version can no longer be downloaded with the error described above The manual cache operation in `\OCA\Files_Versions\Storage` is unfortunately necessary since `\OCA\Files_Versions\Storage::copyFileContents` is not using `\OCP\Files\Storage::moveFromStorage` in the case when an object storage is used. Due to the workaround added in https://github.com/owncloud/core/commit/54cea05271b887f1c8062c034741df869bc0f055 the stream is directly copied and thus bypassing the FS.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-013-3/+0
|
* Update author informationLukas Reschke2016-03-012-0/+2
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* ignore encryption keys for propagationRobin Appelman2016-02-291-0/+18
|
* Merge pull request #22636 from owncloud/fix-ssl-on-external-storagesThomas Müller2016-02-251-1/+5
|\ | | | | Fix HTTPS support on external storages
| * Add proxy support to external storageLukas Reschke2016-02-241-1/+5
| | | | | | | | Otherwise debugging issues is a PITA
* | Merge pull request #22579 from owncloud/fix_broken_unencrypted_sizeThomas Müller2016-02-251-3/+129
|\ \ | |/ |/| Heal unencrypted file sizes at download time (second approach)
| * recalculate unencrypted size if we assume that the size stored in the db is ↵Bjoern Schiessle2016-02-231-3/+129
| | | | | | | | not correct
* | Check delete permission before attemping copy+deleteVincent Petry2016-02-192-0/+8
|/ | | | | | | | Some move operations when cross-storage will be replaced by copy and delete. Before attempting this, first check whether the source storage has delete permissions. This also prevents renaming system-wide external storages.
* Merge pull request #22482 from owncloud/getowner-cacheThomas Müller2016-02-181-1/+6
|\ | | | | cache result for getowner
| * No more staticJoas Schilling2016-02-181-5/+4
| |
| * cache result for getownerRobin Appelman2016-02-171-1/+7
| |
* | Don't apply quota in stream wrapper for part filesVincent Petry2016-02-171-5/+22
|/ | | | | | | | | When overwriting shared files as recipient, the part file is written on the uploader's storage before overwriting the target file. If the uploader has no quota left, they should still be able to overwrite that file with Webdav. To make this work, they need to be able to write the part file to their own storage first.
* remember signature version and only set it on update to make sure that otherBjoern Schiessle2016-02-101-0/+4
| | | | apps like files_versions still get the old signature version
* Check if partial cache entry or not in encryption wrapperVincent Petry2016-02-091-2/+5
|
* Use database for keeping track of the versionLukas Reschke2016-02-091-1/+2
|
* make it backward compatible to work with signed and un-signed filesBjörn Schießle2016-02-091-2/+4
|
* Fix part file partial cache logic in encryption codeVincent Petry2016-02-091-1/+7
| | | | | | | | | | | | The encryption code uses partial cache entries for the part file (which are not stored in the database) but are useful for other parts of the code to retrieve the file size again. This means that in the fixed code $info was empty, so getData() could not be called. The fix makes sure to support both cases when the cache entry exists and doesn't.
* remove unused Storage->getLocalFolderRobin Appelman2016-02-054-39/+0
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-051-1/+1
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* only trigger locking on lockingstoragesRobin Appelman2016-01-141-4/+11
|
* split locking related methods to their own interfaceRobin Appelman2016-01-141-1/+2
|