| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
bring back CRUDS permissions for federated shares
|
| |
| |
| |
| | |
the file has changed or not
|
| | |
|
|\ \
| | |
| | | |
SharedStorage to new sharing code + cleanup
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
|/ |
|
|
|
|
| |
There is no need to calculate the permissions twice.
Saves some is_dir and file_exists calls.
|
|\
| |
| | |
Correctly return an empty string for empty files
|
| | |
|
|/
|
|
| |
Signed-off-by: Stefan Weil <sw@weilnetz.de>
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
version was created
|
|\
| |
| | |
small performance improvement: no need to calculate the header size
|
| |
| |
| |
| | |
already know the size
|
|\ \
| | |
| | | |
Make sure that the encrypted version is set
|
| |/
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
dont break when there is an invalid share
|
| | |
|
|/
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
allow availability recheck for external storages
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
|
| |
|
|\
| |
| | |
Fix HTTPS support on external storages
|
| |
| |
| |
| | |
Otherwise debugging issues is a PITA
|
|\ \
| |/
|/| |
Heal unencrypted file sizes at download time (second approach)
|
| |
| |
| |
| | |
not correct
|
|/
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
cache result for getowner
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
apps like files_versions still get the old signature version
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
|
| |
|
| |
|