Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-04Extend simple file with extension getterenh/simple-file-extensionChristopher Ng
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-02-26Don't set up full filesystem to check for certificatesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-23store mountprovider for each mount in the mounts tableRobin Appelman
this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-16Wrap S3 multipart upload exceptionLouis Chemineau
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-02-15Wrap S3 multipart upload exceptionLouis Chemineau
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-02-10Merge pull request #31035 from paierlep/fix/occ_scan_no_files_errorVincent Petry
Removes misleading error message in occ files:scan for new users.
2022-02-09fix fs cache test user setupRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-09pass user object during fs initRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-09only setup part of the filesystem for appdata requestsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-06Removes misleading error message in occ files:scan for new users.Christian Paier
Previously the occ files:scan command printed an error message for any new users without any files/folders in the data directory. With this change only users with any file/folder is scanned. This fixes #25433. Signed-off-by: Christian Paier <hallo+git@cpaier.com>
2022-01-26Return 404 when AJAX tries to list dir content but file givenMichaIng
Due to a code mistake, the expected 404 return when AJAX tries to list a directory content with a non-directory file path given, does not happen. It instead fails with another exception. This commit restores the original intention to return 404 in the first place when passing a non-directory path with the "dir" parameter. Signed-off-by: MichaIng <micha@dietpi.com>
2022-01-25Remove redundant if clauseCôme Chilliet
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-25Fix OC\Files\Storage\DAV::hasUpdated when cache is not setCôme Chilliet
Fixes the test OCA\Files_External\Tests\Storage\WebdavTest::testStat on PHP>=7.4 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-01-17Merge pull request #29866 from nextcloud/isset-sizeVincent Petry
Check if size value is set
2022-01-14Merge pull request #30631 from nextcloud/fix/update_encrypted_versionVincent Petry
updateEncryptedVersion: cleanup on target if cache already got renamed
2022-01-13Fix psalm issuesCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-13Add helper method in WrapperCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-13Merge pull request #30508 from nextcloud/fix/psaml-binCarl Schwan
Fix psalm not running
2022-01-13Check style updateCarl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-12Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-12updateEncryptedVersion: cleanup on target if cache already got renamedJonas Meurer
When moving a file to trash with encryption enabled, the cache gets moved before the actual file. According to @icewind1991 this is in order to not break object storage. When moving a file from an unencrypted storage (e.g. a collectives storage) to the encrypted trashbin storage, this causes errors, see This commit fixes it by doing `updateEncryptedVersion()` on the target cache entry *if* the source cache entry doesn't exist anymore, but the corresponding target cache entry does exist already. Fixes: #26544 Signed-off-by: Jonas Meurer <jonas@freesources.org>
2022-01-10Fix fail when keys/files folder already existsVincent Petry
Fixes an issue with transfer ownership in move mode where the folder "files_encryption/keys/files" already exists. Instead of failing, its existence is checked before calling mkdir. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-12-29Make max size for single put uploads configurableJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-12-28Merge pull request #28610 from nextcloud/enh/preview-cleanup-queryJulius Härtl
2021-12-21Fix php-cs for S3ConnectionTrait.phpJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-12-21Merge pull request #27493 from cuppett/cuppett/simplify-aws-credential-providerJulius Härtl
2021-12-10Merge pull request #30160 from ↵Pytal
nextcloud/bugfix/noid/encryption-wrapper-fclose-check
2021-12-09Check resource before closing in encryption wrapperVincent Petry
In case of error there is no guarantee that $source or $target is set or is a resource when handling an error. Without this fix, there's a risk that fclose will fail and the actual exception will not be thrown, making it impossible to find out about the root cause. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-12-03Switch logical operatorsacsfer
Unless there is a good reason to keep actual ones 👀
2021-12-02background scan the source storage when a background scan on a storage jail ↵Robin Appelman
is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-25Check for invalid characters before trimmingJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-11-24Typoacsfer
2021-11-23Check if size value is setacsfer
Using `isset()` as it does not return true for array keys that correspond to a `null` value, while `array_key_exists()` does. Fix #29865
2021-11-23Fix Guzzle function callsCôme Chilliet
Since 1.7.0 and 2.0 these functions are turned into static methods. See https://github.com/guzzle/psr7#upgrading-from-function-api Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-23Fix ArrayAccess and JsonSerializable return typesCôme Chilliet
First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2021-11-22Simplify S3ConnectionTrait to defaultProvider plus optionStephen Cuppett
When we initially added the EC2 and ECS IAM role support in #24700, we had to use a workaround by explicitly ordering the various providers due to an inconsistency in the AWS SDK for PHP. We submitted a PR there to get that squared away. Now, we've consumed that version upstream for the SDK and can update our code here to be the most concise version as well as position ourselves to pick up new methods as those become available and prevalent in AWS (for acquiring credentials). See also: https://github.com/nextcloud/server/pull/24700#issuecomment-747650892 See also: https://github.com/aws/aws-sdk-php/pull/2172 Signed-off-by: Stephen Cuppett <steve@cuppett.com>
2021-11-19Merge pull request #29622 from nextcloud/feat/objectstore_multibucket-shiftVincent Petry
Implement multibucket shift for ObjectStore
2021-11-19Merge pull request #29758 from nextcloud/disk_free_space-fix-php8Vincent Petry
Check for `disk_free_space`
2021-11-18Check for `disk_free_space`acsfer
Check for `disk_free_space` before calling it. Fix https://github.com/nextcloud/server/issues/29748
2021-11-17Normalize directory entries in Encoding wrapperVincent Petry
Directory entry file names are now normalized in getMetaData(), getDirectoryContents() and opendir(). This makes the scanner work properly as it assumes pre-normalized names. In case the names were not normalized, the scanner will now skip the entries and display a warning when applicable. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17Move storage encoding compatibility warning logicVincent Petry
The encoding check for file names is now happening the Scanner, and an event will be emitted only if the storage doesn't contain the encoding compatibility wrapper. The event is listened to by the occ scan command to be able to display a warning in case of file name mismatches when they have NFD encoding. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17Normalize file name before existence check in scannerVincent Petry
The scanner would not find a NFD-encoded file name in an existing file list that is normalized. This normalizes the file name before scanning. Fixes issues where scanning repeatedly would make NFD files flicker in and out of existence in the file cache. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-11Implement multibucket shift for ObjectStoreJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-11-05Update lib/private/Files/Storage/Wrapper/Availability.php add void Vincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
2021-11-05Return false in hasUpdated when storage is not availableVincent Petry
Technically, saying that a storage has no updates when it's not available is correct. This makes it possible to retrieve the cache entry for the mount point and also to list and remove unavailable federated shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-04Fix psalmJohn Molakvoæ
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-11-01Merge pull request #29502 from nextcloud/revert-27378-dav-recalc-checksumJohn Molakvoæ
2021-11-01properly handle cases where cache wrappers block accessRobin Appelman
`CacheWrapper::formatCacheEntry` can return false for files that should be filtered out Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-11-01Merge pull request #29281 from vijfhoek/masterJohn Molakvoæ
2021-11-01Revert "add dav plugin to trigger recalculating of checksums"John Molakvoæ