summaryrefslogtreecommitdiffstats
path: root/lib/private/files
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #22900 from owncloud/diskfreespace-filesworkaroundThomas Müller2016-03-071-1/+9
|\ | | | | Fix call to disk_free_space when a file is provided
| * 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 #22812 from owncloud/node-lockThomas Müller2016-03-071-0/+24
|\ \ | |/ |/| Add locking to the node api
| * Add locking to the node apiRobin Appelman2016-03-031-0/+24
| |
* | 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-0110-10/+0
|
* Map MaciLukas Reschke2016-03-011-1/+1
|
* Update author informationLukas Reschke2016-03-0116-6/+21
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Merge pull request #22733 from owncloud/size-propagation-new-fileThomas Müller2016-03-011-1/+5
|\ | | | | fix size propagation for new files
| * fix size propagation for new filesRobin Appelman2016-02-291-1/+5
| |
* | ignore encryption keys for propagationRobin Appelman2016-02-292-0/+68
|/
* 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
* | Avoids scanning the root storageMorris Jobke2016-02-221-0/+4
| | | | | | | | | | | | | | | | This check will skip the background scan for the root storage because there is nothing in the root storage that isn't already in another (mostly user-) storage. Fixes #22501
* | Merge pull request #22518 from owncloud/checkdeletebeforecopyinsteadofrenameThomas Müller2016-02-192-0/+8
|\ \ | | | | | | Check delete permission before attemping copy+delete
| * | 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.
* / Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-191-1/+1
|/ | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Merge pull request #22493 from owncloud/issue_22467Thomas Müller2016-02-182-3/+3
|\ | | | | getRootFolder should not setup the FS for any user
| * Make scrutinizer happyRoeland Jago Douma2016-02-181-1/+1
| |
| * getRootFolder should not setup the FS for any userRoeland Jago Douma2016-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #22467 This can go wrong when an app (take the ldap app) DIs something that needs the rootFolder. This break if we use cookie auth since then we know the user at that point and thus try to setup the fs for that user. However if there are then incomming shares from an ldap user they will fails since the user manager can't find them yet. Now getRootFolder does not setup the fs for any user.
* | 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-093-3/+18
|
* Use number of chunk for HMAC as wellLukas Reschke2016-02-091-5/+13
| | | | Prevents switching single blocks within the encrypted file.
* fixing unit testsBjörn Schießle2016-02-091-0/+3
|
* make it backward compatible to work with signed and un-signed filesBjörn Schießle2016-02-092-5/+11
|
* 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.
* Merge pull request #22207 from owncloud/mountcache-exists-checkThomas Müller2016-02-081-1/+1
|\ | | | | better exists check for insert mount cache
| * better exists check for insert mount cacheRobin Appelman2016-02-081-1/+1
| |
* | Make sure fileinfo exists when calling getCheckSum in node APIVincent Petry2016-02-081-1/+1
|/
* remove unused Storage->getLocalFolderRobin Appelman2016-02-054-39/+0
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-054-4/+5
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Merge pull request #22071 from owncloud/cache-split-insertThomas Müller2016-02-033-44/+77
|\ | | | | split cache->insert from cache->put
| * split cache->insert from cache->putRobin Appelman2016-02-033-44/+77
| |
* | Merge pull request #21997 from owncloud/checksumsThomas Müller2016-02-034-7/+28
|\ \ | | | | | | Checksums
| * | Add store/retrieve checksumsRoeland Jago Douma2016-02-034-7/+28
| |/ | | | | | | | | | | | | * Add extra db column to filecache * Bump version * Update filecache code to actually handle checksum * Webdav code to store/retrieve checksums
* / filter invalid storages from the mount cache earlyRobin Appelman2016-02-021-1/+1
|/
* Merge pull request #22015 from owncloud/share-no-permissionsThomas Müller2016-02-021-2/+3
|\ | | | | Block shares that dont have the correct source permissions
| * Block shares that dont have the correct source permissionsRobin Appelman2016-01-291-2/+3
| |
* | Merge pull request #21956 from owncloud/cross-cache-moveThomas Müller2016-01-292-30/+124
|\ \ | |/ |/| Add fallback moveFromCache implementation
| * Add fallback moveFromCache implementationRobin Appelman2016-01-292-30/+124
| |
* | fix cachejail->updateRobin Appelman2016-01-281-1/+1
| |