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
Commit 80ea4ab
Browse filesBrowse the repository at this point in the historyBrowse files
fix(uploads): tolerate transient storage probes and reject unowned keys with 403
Follow-ups from a backward-compatibility audit of the attachment-key hardening.
The existence probe is hygiene, not authorization — the key-format and
no-prior-record guards already carry that, and a binding to a nonexistent
object grants nothing readable. But `headObject` rethrows non-404 provider
errors, so a transient 5xx or throttle would drop a legitimate attachment.
Only a definitive not-found now rejects; a thrown error logs and proceeds on
the ownership guards. This path is reached solely by >50MB multipart uploads,
the one flow that persists no metadata row at upload time.
The stage route mapped an ownership rejection to a 500. It is a client error;
return 403 instead.
0 commit comments