0ec8f529ab
All objects in NeoFS must have owner ID. In previous implementation Object Delete service handler set owner ID from request session token. If removal was executed w/o a session, object with tombstone was prepared incorrectly. In order to fix this node should set its own ID and become an owner of the tombstone object. Extend `NetworkInfo` interface required by Object.Delete handler with `LocalNodeID` method which returns `owner.ID` of the local node. Implement the method on `networkState` component of storage node application which is updated on each node state change in NeoFS network map. Set owner returned by `LocalNodeID` call as tombstone object's owner in Delete handler. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru> |
||
---|---|---|
.. | ||
config | ||
reputation | ||
accounting.go | ||
attributes.go | ||
cache.go | ||
config.go | ||
container.go | ||
control.go | ||
grpc.go | ||
main.go | ||
metrics.go | ||
morph.go | ||
netmap.go | ||
object.go | ||
pprof.go | ||
reputation.go | ||
session.go | ||
timers.go | ||
worker.go |