Open jnweiger opened 1 year ago
Everything works fine, when the encryption app is loaded, but encryption is disabled, as per occ encryption:disable
See also #234
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.
More research should be done on what exactly the import command is doing.. Should the import only work when encryption is disabled?
In theory it should also work with Master-Key encryption
Seen with data_exporter-0.2.2-rc.1, encryption-1.6.1-rc.1 and owncloud core-10.12.2
occ instance:export:user admin /tmp/aa1
-> both files are there, and correct. OKocc instance:import:user --as=admin2 /tmp/aa1/admin
-> a new account admin2 is created, all files show up in the web UI. OKocc encryption:decrypt-all
succeeds without errors. OK.This can lead to a potential dataloss, when an admin deletes the export after importing seems successful.
Expected behaviour: