Age | Commit message (Collapse) | Author |
|
Signed-off-by: Christopher Ng <chrng8@gmail.com>
|
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
|
this enabled more fine grained filesystem setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Louis Chemineau <louis@chmn.me>
|
|
Signed-off-by: Louis Chemineau <louis@chmn.me>
|
|
Removes misleading error message in occ files:scan for new users.
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
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>
|
|
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>
|
|
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|
Fixes the test OCA\Files_External\Tests\Storage\WebdavTest::testStat on
PHP>=7.4
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|
Check if size value is set
|
|
updateEncryptedVersion: cleanup on target if cache already got renamed
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Fix psalm not running
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
|
|
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>
|
|
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>
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
|
|
Signed-off-by: Julius Härtl <jus@bitgrid.net>
|
|
|
|
nextcloud/bugfix/noid/encryption-wrapper-fclose-check
|
|
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>
|
|
Unless there is a good reason to keep actual ones 👀
|
|
is triggered
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
|
|
|
Using `isset()` as it does not return true for array keys that correspond to a `null` value, while `array_key_exists()` does.
Fix #29865
|
|
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>
|
|
First round of modifications for PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|
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>
|
|
Implement multibucket shift for ObjectStore
|
|
Check for `disk_free_space`
|
|
Check for `disk_free_space` before calling it.
Fix https://github.com/nextcloud/server/issues/29748
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
|
|
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: Carl Schwan <carl@carlschwan.eu>
|
|
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>
|
|
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
|
|
|
|
`CacheWrapper::formatCacheEntry` can return false for files that should be filtered out
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|
|
|
|