Space subtitle/description/image: raw storage errors (with the state file path) are sent to space owners #1013

Closed
opened 2026-10-26 10:56:24 +00:00 by Cordy · 0 comments
Owner

Found in the #1007 review (.superpowers/sdd/2026-10-26-batch8/review-b.md B8, final-review.md R4).

Where:

  • internal/api/spaces.go:838 and :864 return the raw spacemeta error to space owners as a 400.
  • spaceimg.go:103 and :122 return the raw error text with a 500.

Why it matters: since v0.6.356 an unreadable spacemeta.json makes those writes fail, so the server-side state file path reaches non-admin users more often.

Fix:

  • Answer with a stable code (for example space-meta-unavailable, 503) and a generic message.
  • Log the error with a WARN.
  • Test that no path appears in the body.
Found in the #1007 review (`.superpowers/sdd/2026-10-26-batch8/review-b.md` B8, final-review.md R4). **Where:** - `internal/api/spaces.go:838` and `:864` return the raw spacemeta error to space owners as a 400. - `spaceimg.go:103` and `:122` return the raw error text with a 500. **Why it matters:** since v0.6.356 an unreadable `spacemeta.json` makes those writes fail, so the server-side state file path reaches non-admin users more often. **Fix:** - Answer with a stable code (for example `space-meta-unavailable`, 503) and a generic message. - Log the error with a WARN. - Test that no path appears in the body.
Cordy closed this issue 2026-10-27 01:28:41 +00:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#1013
No description provided.