personium / personium-core

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

Even if Depth:1 is specified in "Retrieve cell snapshot file setting" API, it is ignored. #439

Closed SawamiWataru closed 5 years ago

SawamiWataru commented 5 years ago

366 の修正の影響を受けている可能性が高いです。

本来は PROPFIND https://cell1.unit1.example/ のようなAPI呼び出しでDepth:1を抑止したかったのですが、#366 の影響で PROPFIND https://cell1.unit1.example/__snapshot まで抑止してしまっているのだと思われます。

SawamiWataru commented 5 years ago

恐らく、CellSnapshotCellRsCmpクラスに、DavRsCmpのcreateChildrenDavResponseList()をコピーすれば直ると思われます。

CellSnapshotCellRsCmp.java https://github.com/personium/personium-core/blob/master/src/main/java/io/personium/core/model/CellSnapshotCellRsCmp.java

createChildrenDavResponseList() https://github.com/personium/personium-core/blob/master/src/main/java/io/personium/core/model/DavRsCmp.java#L302