personium / personium-core

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

Cell export failed to include OData in Main Box #311

Open dixonsiu opened 5 years ago

dixonsiu commented 5 years ago

Description

In the demo environment, I exported a cell that contains OData under the main box. I then import the cell to a Vagrant version Personium Unit (localhost). And the expected OData is empty.

Empty OData after importing Cell

image

Expected OData

image

dixonsiu commented 2 years ago

Check if it is fixed or not.

dixonsiu commented 2 years ago

Reproduced the problem in Personium Core 1.7.22

shimono commented 2 years ago

API Ref: https://personium.io/docs/en/apiref/501_Export_Cell/ Test: does not seem to exist. Code: https://github.com/personium/personium-core/blob/develop/src/main/java/io/personium/core/rs/cell/CellExportResource.java

hhoshi-0124 commented 2 years ago

main boxのodataはエクスポートされている。 エクスポートしたCellと同じCellへインポートした場合はODataがインポートされる。 別Cellにインポートした場合に本現象が発生する。

hhoshi-0124 commented 2 years ago

main boxのbox idが自Cell IDであることに起因する問題。仕様問題 ? インポート時、インポートデータのCell ID(KEY_CELL_ID)を自CellのIDに置き換えてインポートしている。 しかし、main boxは特殊で「box id=Cell ID」となっているにも関わらず、main box関連のODataをインポートする際にbox idの書き換えは行っていない。 このため、main boxに紐づかないデータとしてインポートされている。 その結果、インポートは正常終了するにも関わらずmain boxのODataが表示されない。

yoh1496 commented 2 years ago

Related to #73