iterate-ch / cyberduck

Cyberduck is a libre FTP, SFTP, WebDAV, Amazon S3, Backblaze B2, Microsoft Azure & OneDrive and OpenStack Swift file transfer client for Mac and Windows.
https://cyberduck.io/
GNU General Public License v3.0
3.23k stars 286 forks source link

Moving encrypted folders to new parent directory causes them to disappear from the Cyberduck interface #13566

Open TigBuh99 opened 2 years ago

TigBuh99 commented 2 years ago

_* If you have trouble connecting to a server or your login credentials are not valid, try to resolve the issue with the assistance of your hosting service provider. Any such ticket will be closed with a resolution of thirdparty._ Not applicable

Describe the bug All folders in an encrypted vault have disappeared in the Cyberduck program after a move of the directories. However, I can see them on the storage site using the provider's web application.

To Reproduce Steps to reproduce the behavior:

  1. I created an encrypted vault.
  2. I created various subfolders inside it and I uploaded a number of files. The data size is approximately 22000 files in 850 directories.
  3. The upload process was long in time as may be expected.
  4. I then created a new directory and I moved the original directories inside it using drag and drop.
  5. No directories are visible in Cyberduck other than the newly created parent directory.
  6. If I go to the storage provider's website I can see the encrypted directories which of course are not readable.

Expected behavior All directories should have been moved properly to the new parent directory and their content should be visible.

Screenshots Not applicable

Desktop (please complete the following information):

_Log Files Please include the log file. You can reach the logging output in Preferences → Connection._ Attached cyberduck.log

Additional context Add any other context about the problem here. Connection with WebDAV to Icedrive

AliveDevil commented 2 years ago

https://github.com/nextcloud/server/issues/17064

Might be related here. Icedrive uses SabreDav as well, and uses, probably, the same code Nextcloud and OwnCloud are using.^1

dkocher commented 2 years ago

Decryption failures in log file.

2022-07-12 18:19:17,320 [background-1] ERROR ch.cyberduck.core.vault.DecryptingListProgressListener - Failure BackgroundException{class=class ch.cyberduck.core.cryptomator.CryptoAuthenticationException, file=null, message='Access denied', detail='Failure to decrypt due to an unauthentic ciphertext', cause='org.cryptomator.cryptolib.api.AuthenticationFailedException: Invalid Ciphertext.'} decrypting Path{path='/C drive 2/d/CR/C2A7QBXFHBGY4AG3SI5PPFBPYKGB2J/DVkd_YXuAErVEsFRqPiyNeV0gdZzwvY=.c9r', type=[directory, encrypted], attributes=PathAttributes{accessed=-1, size=-1, modified=1657639157000, created=-1, owner='null', group='null', permission=--, acl={}, checksum='null', etag='null', storageClass='null', encryption='none', versionId='null', fileId='null', lockId='null', duplicate=null, hidden=null, revision=null, region='null', metadata={}', custom={}'}}