personium / personium-core

Core module of Personium
https://personium.io
Apache License 2.0
88 stars 16 forks source link

Import Cells repeatedly without destroy one of the previously imported Cell #307

Closed dixonsiu closed 5 years ago

dixonsiu commented 5 years ago

How to reproduce the bug

Repeat the following 4 times (app-minimal-clone, app-minimal-clone02, app-minimal-clone03, app-minimal-clone04), app-minimal-clone02 will become an empty Cell and Role/Account are deleted.

  1. Create a Cell
  2. Upload a zip file which is created from another Personium Unit
  3. Perform import
dixonsiu commented 5 years ago

Suggested solution

Allow user to export with two (2) different options.

  1. export all data but only import once
    All resources use the same ID in Elastic Search.
  2. export only resource without data but allow importing more than once
    All resources use new IDs OR create resources from scratch every time.
SawamiWataru commented 5 years ago

This issue is closed as it is no longer triggered by the #423 fix.