Skip to content

[QA] decrypt failure when moving from unencrypted external storage to encrypted primary storage #254

Closed

Description

@jnweiger

Seen with owncloud 10.7.0 RC1 and encryption 1.5.0 RC1
encryption.use_legacy_mode is false.

  • external storage SFTP is mounted with encryption disabled.
  • The skeleton files are all encrypted.
  • mv the Documents folder with its Example.odt into the SFTP folder
  • check in the ftp server manually: file Example.odt reports OpenDocument Text -- the file is unencrypted. OK
  • try mv the Documents folder back to the root. It fails with an decrypt error. BAD

image

Expected behaviour:

  • no decryption is attempted, as this storage is already unencrypted.
  • The contents gets re-encrypted while moving.
  • No random guesswork while producing error messages. It is not a sharing issue, nothing was ever shared here.

Activity

  1. jnweiger commented on Mar 17, 2021

    @jnweiger
    ContributorAuthor

    Locale was German. Fömlich. The error message is mixed denglish. Is this fixable? if so, please fork a separate issue, else ignore this comment.

  2. jnweiger commented on Mar 17, 2021

    @jnweiger
    ContributorAuthor

    On a fresh setup, with the same instructions, reproduced a slightly different error:

    image

    @karakayasemi could this be a blocksize mismatch?

    owncloud-254.log.zip

  3. karakayasemi commented on Mar 17, 2021

    @karakayasemi
    Contributor

    I think we only changed the way to encoding files. Attempting to encrypt/decrypt files on unencrypted storage seems unrelated from the encoding type change. It may not be a regression. I will look at it.

  4. karakayasemi commented on Mar 17, 2021

    @karakayasemi
    Contributor

    Tried with v1.4.0, it is not a regression. The same error happened in the latest release. We need to investigate in more depth.

  5. IljaN commented on Apr 1, 2021

    @IljaN
    Contributor

    PR: owncloud/core#38567

    Planned for 10.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions