Do not fail a ZeroZero delivery when the account cannot publish #311

Merged
spark merged 2 commits from task/zerozero-publish-403 into main 2026-11-26 22:34:00 +00:00
Owner

Summary

  • Photographer accounts can upload to fotos.zerozero.pt and still get 403 Insufficient permissions on POST /api/photo-sync. That refusal was failing the delivery even though the file was already on the desk.
  • A 403 now leaves the delivery done. Any other publish error still fails it.

Test plan

  • Unit test: both publish routes answer 403 and publish() resolves.
  • After deploy, Repetir on the Torreense x Celtic items that show zerozero publish: 403 Insufficient permissions. They should leave the failed list.
## Summary - Photographer accounts can upload to fotos.zerozero.pt and still get `403 Insufficient permissions` on `POST /api/photo-sync`. That refusal was failing the delivery even though the file was already on the desk. - A 403 now leaves the delivery done. Any other publish error still fails it. ## Test plan - [x] Unit test: both publish routes answer 403 and `publish()` resolves. - [ ] After deploy, Repetir on the Torreense x Celtic items that show `zerozero publish: 403 Insufficient permissions`. They should leave the failed list.
spark added 1 commit 2026-11-26 22:11:08 +00:00
Do not fail a ZeroZero delivery when the account cannot publish.
ci / rust (pull_request) Successful in 4m10s
ci / typescript (pull_request) Successful in 11m13s
56c115933c
A photographer login may upload and still get 403 on photo-sync. The file is already on the desk, so that refusal is not a failed delivery.
spark added 1 commit 2026-11-26 22:20:56 +00:00
Sign in to ZeroZero again when publish returns 403.
ci / rust (pull_request) Successful in 6m44s
ci / typescript (pull_request) Successful in 12m48s
0a845f8bc6
A stale desk session answers Insufficient permissions instead of 401. One fresh login is tried before that refusal is accepted.
spark merged commit 360dc5efb8 into main 2026-11-26 22:34:00 +00:00
Sign in to join this conversation.