encryption icon indicating copy to clipboard operation
encryption copied to clipboard

[QA] moving encrypted file to unencrypted FTP storage and back causes a decrypt error

Open jnweiger opened this issue 4 years ago • 3 comments

Seen with v1.5.1-rc1 on 10.7.0 with user key encryption enabled.

  • disable encryption for an SFTP external storage.
  • upload a textfile hello_ftp.txt to the main storage, it gets encypted. OK
  • use the Web UI to move the file into the SFTP storage. It gets decrypted. OK
  • use the Web UI to move the file back to the main storage, it sometimes gets encrypted, sometimes the move fails, (Okayish? se below!), but also an error appears: image

Expected behaviour: no useless error messages.

No error message appears, if the file is created inside the unencrypted SFTP storage, and then moved out.

jnweiger avatar Jun 07 '21 23:06 jnweiger

Re-tested with 1.5.1-rc1 and hsmdaemon-0.0.8 enabled:

  • Same diagnostics.
  • The move back fails. The file is not re-encrypted. It remains unencrypted in the SFTP storage. BAD.

jnweiger avatar Jun 21 '21 00:06 jnweiger

Fixed in 10.8.0

We want to release it together

micbar avatar Jun 21 '21 12:06 micbar

https://github.com/owncloud/core/pull/38567

micbar avatar Jun 21 '21 12:06 micbar