owncloud / data_exporter

Export/Import for ownCloud user data
GNU General Public License v2.0
7 stars 5 forks source link

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

Open jnweiger opened 1 year ago

jnweiger commented 1 year ago

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

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

Expected behaviour:

jnweiger commented 1 year ago

Everything works fine, when the encryption app is loaded, but encryption is disabled, as per occ encryption:disable

configreport.zip

jnweiger commented 1 year ago

See also #234

phil-davis commented 1 year ago

I suppose that this has always been a problem.

The data_exporter (and importer) app is for "one off" moves of data. Maybe it is OK to document that import is not supported into an instance with encryption enabled. That will be OK for cases where someone is moving data from an old to a new instance - the new instance can be set up without encryption, import all the needed users/data, then enable encryption...

But maybe there are use cases where a user's data needs to be moved from instance A to instance B, and instance B already has many production users and encryption. For that, it needs to be possible to import a single user successfully into an existing encrypted instance.

dpapac commented 1 year ago

More research should be done on what exactly the import command is doing.. Should the import only work when encryption is disabled?

IljaN commented 1 year ago

In theory it should also work with Master-Key encryption