You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep atomic JSON cleanup anchored after temporary validation failure #483
Every temporary file created for atomic JSON publication is cleaned through the
directory capability that owns it. A mutable absolute parent path must never be
used after validation fails.
Observed
If temporary-entry validation raises before temporary_name is assigned, the
fallback calls Path.unlink() through the mutable absolute parent. Parent
retargeting can therefore delete an outside file while leaving the actual
descriptor-created temporary entry behind.
Acceptance
Retain an anchored cleanup directory descriptor and basename as soon as the
temporary file is created.
Reject a temporary file whose parent capability is not the retained
destination directory.
On rejection, remove only the owned temporary entry and close every
descriptor.
Add a deterministic cross-directory/retarget regression test.
Activity
fix: retain atomic temporary ownership (#482 #483)