nextcloud/lib/private
Jonas Meurer a2f4c62c19
updateEncryptedVersion: cleanup on target if cache already got renamed
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-12 15:47:08 +01:00
..
Accounts Fix undefined/unset scope in account properties 2022-01-11 10:15:06 +01:00
Activity Update php licenses 2021-06-04 22:02:41 +02:00
App Remove iconv from dependencies and tests 2021-11-30 02:33:12 +01:00
AppFramework Pass username prefill through unauthenticated request redirects 2021-12-29 11:52:31 +01:00
Archive Update php licenses 2021-06-04 22:02:41 +02:00
Authentication Merge pull request #30016 from nextcloud/techdebt/noid/remove-default-token-provider 2021-12-02 16:48:03 +01:00
Avatar Fix resource usages in OC_Image 2021-10-28 17:48:43 +02:00
BackgroundJob Reset job disabling timer on adding the job again 2022-01-03 12:12:02 +01:00
Broadcast/Events Update php licenses 2021-06-04 22:02:41 +02:00
Cache Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
Calendar Fix initialization of calendar search URIs 2021-11-11 10:53:11 +01:00
Collaboration Merge pull request #29879 from nextcloud/bugfix/noid/sharing-enumeration-addressbooks 2021-12-21 08:11:04 +01:00
Command Update php licenses 2021-06-04 22:02:41 +02:00
Comments Allow to count comments with multiple verbs 2021-11-26 12:29:44 +01:00
Console Write upgrade/not-installed notices to stderr 2021-08-18 14:31:49 +02:00
Contacts/ContactsMenu Limit more contact searches 2021-12-08 18:58:54 +01:00
Dashboard Update php licenses 2021-06-04 22:02:41 +02:00
DB Unit tests 2022-01-07 09:54:41 +01:00
Diagnostics Update php licenses 2021-06-04 22:02:41 +02:00
DirectEditing fix translation source in directEditing templates 2021-12-16 16:30:50 +01:00
Encryption Refactor getEncryptionModule routine 2021-07-06 19:20:32 +02:00
EventDispatcher Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
Federation Limit more contact searches 2021-12-08 18:58:54 +01:00
Files updateEncryptedVersion: cleanup on target if cache already got renamed 2022-01-12 15:47:08 +01:00
FullTextSearch Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
GlobalScale Update php licenses 2021-06-04 22:02:41 +02:00
Group Update php licenses 2021-06-04 22:02:41 +02:00
Hooks Update php licenses 2021-06-04 22:02:41 +02:00
Http Check for !== false instead 2021-07-12 15:06:30 +02:00
IntegrityCheck Fix Iterator return types 2021-11-23 09:28:57 +01:00
KnownUser Update php licenses 2021-06-04 22:02:41 +02:00
L10N Default to language from request in L10N\Factory->getUserLanguage() 2022-01-10 13:06:23 +01:00
LDAP Update php licenses 2021-06-04 22:02:41 +02:00
legacy Merge pull request #30291 from nextcloud/image-memory-limit 2022-01-11 13:35:56 +01:00
Lock Update php licenses 2021-06-04 22:02:41 +02:00
Lockdown use searchoperation for storage filter instead of db expression 2021-06-14 16:11:25 +02:00
Log Fix DateTime constructor calls with null 2021-11-23 09:28:58 +01:00
Mail fix parameter type hint in phpdoc 2021-09-09 14:03:35 +02:00
Memcache Check if directoy is writable instead of possibly missing file 2021-12-20 15:36:52 +01:00
Migration Update php licenses 2021-06-04 22:02:41 +02:00
Notification Improve wording 2021-10-27 10:12:30 +02:00
OCS Update php licenses 2021-06-04 22:02:41 +02:00
Preview Merge pull request #28610 from nextcloud/enh/preview-cleanup-query 2021-12-28 13:20:02 +01:00
Profile Fix source of translations 2021-11-26 02:00:40 +00:00
Remote Update php licenses 2021-06-04 22:02:41 +02:00
Repair Bump doctrine/dbal from 3.0.0 to 3.1.3 2021-10-22 09:03:45 +02:00
RichObjectStrings Update php licenses 2021-06-04 22:02:41 +02:00
Route Fix Lots of Error: file_exists(): open_basedir restriction in effect. in Log 2021-07-30 19:28:52 +00:00
Search Update php licenses 2021-06-04 22:02:41 +02:00
Security Don't query the bruteforce attempts when we just deleted them 2021-12-01 18:01:22 +01:00
Session Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +01:00
Settings Improve log and allow duplicate notifications section 2021-10-04 19:02:13 +02:00
Setup Introduce ISecureRandom::CHAR_ALPHANUMERIC 2021-07-08 15:11:31 +02:00
Share Limit more contact searches 2021-12-08 18:58:54 +01:00
Share20 Allow to pass note when creating a share and send it with directly in the share mail when set 2021-12-03 10:17:02 +01:00
Support Fair use of push notifications 2021-10-23 00:54:50 +02:00
SystemTag Update php licenses 2021-06-04 22:02:41 +02:00
Tagging Update php licenses 2021-06-04 22:02:41 +02:00
Template Remove shortFooter/longFooter to avoid unnecessary navigation loading 2022-01-12 12:16:39 +01:00
Updater Avoid deprecation warnings about libxml_disable_entity_loader in PHP 8.1 2021-12-16 10:35:03 +01:00
User Don't check the configvalue for lastLogin which is never null 2021-12-10 16:26:13 +01:00
UserStatus Add an API to set and rollback the user status 2021-10-18 20:31:37 +02:00
AllConfig.php Use proper app id (settings instead of core) 2021-12-13 19:20:10 +00:00
AppConfig.php Update php licenses 2021-06-04 22:02:41 +02:00
AppScriptDependency.php Sort app scripts topologically by its dependencies 2021-12-29 16:40:05 +01:00
AppScriptSort.php Sort app scripts topologically by its dependencies 2021-12-29 16:40:05 +01:00
CapabilitiesManager.php Update php licenses 2021-06-04 22:02:41 +02:00
Color.php Update php licenses 2021-06-04 22:02:41 +02:00
Config.php Don't write to config file if config_is_read_only is set 2021-12-13 13:14:17 +01:00
ContactsManager.php Convert strict_search to wildcard property and add psalm docs 2021-12-08 19:24:16 +01:00
DatabaseException.php Update php licenses 2021-06-04 22:02:41 +02:00
DatabaseSetupException.php Migrate HintException to OCP 2021-06-30 15:28:02 -04:00
DateTimeFormatter.php Update php licenses 2021-06-04 22:02:41 +02:00
DateTimeZone.php Update php licenses 2021-06-04 22:02:41 +02:00
ForbiddenException.php Update php licenses 2021-06-04 22:02:41 +02:00
HintException.php Migrate HintException to OCP 2021-06-30 15:28:02 -04:00
InitialStateService.php Update php licenses 2021-06-04 22:02:41 +02:00
Installer.php Run migrations fully when reenabling an app 2021-12-29 11:29:41 +01:00
LargeFileHelper.php Update php licenses 2021-06-04 22:02:41 +02:00
Log.php Interpolate the log message also for logged exceptions 2021-11-29 14:29:35 +01:00
MemoryInfo.php Update php licenses 2021-06-04 22:02:41 +02:00
NaturalSort.php Update php licenses 2021-06-04 22:02:41 +02:00
NaturalSort_DefaultCollator.php Update php licenses 2021-06-04 22:02:41 +02:00
NavigationManager.php Let apps toggle an unread counter on app icons 2021-06-16 17:12:56 +02:00
NeedsUpdateException.php Update php licenses 2021-06-04 22:02:41 +02:00
NotSquareException.php Update php licenses 2021-06-04 22:02:41 +02:00
PreviewManager.php Use findBinaryPath for previews 2021-10-23 23:15:42 +02:00
PreviewNotAvailableException.php Update php licenses 2021-06-04 22:02:41 +02:00
RedisFactory.php Use strict comparison to detect usage of redis cluster 2021-11-25 16:19:42 +01:00
Repair.php Include previous execption for repair steps that don't exist 2021-11-30 10:57:49 +01:00
RepairException.php Update php licenses 2021-06-04 22:02:41 +02:00
Search.php Update php licenses 2021-06-04 22:02:41 +02:00
Server.php Merge pull request #30016 from nextcloud/techdebt/noid/remove-default-token-provider 2021-12-02 16:48:03 +01:00
ServerContainer.php Update php licenses 2021-06-04 22:02:41 +02:00
ServerNotAvailableException.php Update php licenses 2021-06-04 22:02:41 +02:00
ServiceUnavailableException.php Update php licenses 2021-06-04 22:02:41 +02:00
Setup.php Remove default token which is deprecated since Nextcloud 13 2021-12-01 18:41:31 +01:00
Streamer.php Update php licenses 2021-06-04 22:02:41 +02:00
SubAdmin.php Update php licenses 2021-06-04 22:02:41 +02:00
SystemConfig.php consider some config keys under 'objectstore_multibucket' as sensitive 2021-10-05 18:26:06 +02:00
TagManager.php Update php licenses 2021-06-04 22:02:41 +02:00
Tags.php Update php licenses 2021-06-04 22:02:41 +02:00
TemplateLayout.php Split common vendor chunk 2022-01-08 10:14:50 +01:00
TempManager.php Update php licenses 2021-06-04 22:02:41 +02:00
Updater.php Do not print verbose info about app updates if there are none 2021-11-18 09:11:22 +01:00
URLGenerator.php Merge pull request #27733 from PhrozenByte/enhancement/noid/IURLGenerator-linkToDefaultPageUrl 2021-10-05 13:06:59 +02:00