mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
A virtual directory node was identified from the SHA-256 of its canonical
listing JSON through the same function as raw file bytes. A regular file
containing exactly that JSON (for example an empty directory's
{"children":[],"kind":"directory"}) received the same artifact ID, the
directory node overwrote the file node, and extraction of the valid
archive failed with an integrity mismatch.
Derive virtual node identities in a separate domain and validate node IDs
by representation. Inventory Evidence retained with the earlier virtual
identity is still accepted.
Fixes #8551
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>