nspcc-dev / neofs-node

NeoFS is a decentralized distributed object storage integrated with the Neo blockchain
https://fs.neo.org
GNU General Public License v3.0
31 stars 38 forks source link

node/put: Fix fetching first object for a first object #2828

Closed carpawell closed 2 months ago

carpawell commented 2 months ago

If we are checking a first object, it is impossible to HEAD the first object to check ACL rules, get its parent directly from the header instead. It is also an optimization for last and LINK object ACL checks (they have a parent in the header too).