Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.
This repository was archived by the owner on Jun 21, 2024. It is now read-only.

occ instance:import:user creates empty files when encryption is enabled #235

@jnweiger

Description

@jnweiger

Seen with data_exporter-0.2.2-rc.1, encryption-1.6.1-rc.1 and owncloud core-10.12.2

  • log in admin user at webUI
  • create a small text file with texteditor, upload a png image file.
  • occ instance:export:user admin /tmp/aa1 -> both files are there, and correct. OK
  • occ instance:import:user --as=admin2 /tmp/aa1/admin -> a new account admin2 is created, all files show up in the web UI. OK
  • Try to download the text file, or the png file. Both have 0 size. BAD.
  • In the filesystem both appear with ca 8kb size, due to encryption overhead.
  • occ encryption:decrypt-all succeeds without errors. OK.
  • Now both files also have 0 size in the filesystem.

This can lead to a potential dataloss, when an admin deletes the export after importing seems successful.

Expected behaviour:

  • create correct files, even when encryption is enabled, or at least
  • give an error message, that encryption must be disabled first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p4-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions