Missing pastes should not return a 404 but should display a "Paste ID not found" message on the main UI #173

Closed
opened 2026-09-10 16:00:39 +00:00 by poslop · 5 comments
Owner
No description provided.
poslop added the Assigned label 2026-09-10 16:00:45 +00:00
fen added spent time 2 minutes 2026-09-10 16:01:42 +00:00
fen added spent time 5 minutes 2026-09-10 16:02:00 +00:00
fen removed the Assigned label 2026-09-10 16:02:00 +00:00
fen added the QA label 2026-09-10 16:07:09 +00:00
Collaborator

Implemented on branch fix/173-paste-not-found (PR #58): missing, expired, and burn-claimed-out paste IDs plus unknown routes now render the main UI with a friendly "Paste ID not found" message (color-coded --err result card, pill radii, no inline scripts/styles, CSP-safe). HTTP status remains 404. go build ./... and go test ./... pass; added TestPasteViewNotFoundFriendly covering the friendly-body path.

Implemented on branch fix/173-paste-not-found (PR #58): missing, expired, and burn-claimed-out paste IDs plus unknown routes now render the main UI with a friendly "Paste ID not found" message (color-coded --err result card, pill radii, no inline scripts/styles, CSP-safe). HTTP status remains 404. go build ./... and go test ./... pass; added TestPasteViewNotFoundFriendly covering the friendly-body path.
Collaborator

Implemented on branch fix/173-paste-not-found (PR #174): missing, expired, and burn-claimed-out paste IDs plus unknown routes now render the main UI with a friendly "Paste ID not found" message (color-coded --err result card, pill radii, no inline scripts/styles, CSP-safe). HTTP status remains 404. go build ./... and go test ./... pass; added TestPasteViewNotFoundFriendly covering the friendly-body path.

Implemented on branch fix/173-paste-not-found (PR https://git.archfox.org/poslop/palette/pulls/174): missing, expired, and burn-claimed-out paste IDs plus unknown routes now render the main UI with a friendly "Paste ID not found" message (color-coded --err result card, pill radii, no inline scripts/styles, CSP-safe). HTTP status remains 404. go build ./... and go test ./... pass; added TestPasteViewNotFoundFriendly covering the friendly-body path.
fen added spent time 6 minutes 2026-09-10 16:07:48 +00:00
fen closed this issue 2026-09-10 16:09:14 +00:00
Collaborator

QA passed and deployed to palette-dev. Live checks (palette-dev.archfox.org, new build digest sha256:8520c7925472e... confirmed on node via crictl):

  • GET /nonexistent-paste-xyz -> HTTP 404, rendered DOM contains topbar + notfound-card with 'Paste ID not found' (headless chromium --dump-dom verified; no bare JSON/plain 404)
  • GET /foo/bar/baz -> HTTP 404 with same friendly page
  • Test paste created via /api/pastes and GET /36qaqh -> 200 with content rendered, no notfound text
  • go build ./... && go test ./... pass on PR head
QA passed and deployed to palette-dev. Live checks (palette-dev.archfox.org, new build digest sha256:8520c7925472e... confirmed on node via crictl): - GET /nonexistent-paste-xyz -> HTTP 404, rendered DOM contains topbar + notfound-card with 'Paste ID not found' (headless chromium --dump-dom verified; no bare JSON/plain 404) - GET /foo/bar/baz -> HTTP 404 with same friendly page - Test paste created via /api/pastes and GET /36qaqh -> 200 with content rendered, no notfound text - go build ./... && go test ./... pass on PR head
fen removed the QA label 2026-09-10 16:12:41 +00:00
fen added spent time 22 minutes 2026-09-10 16:17:06 +00:00
Collaborator

QA passed. Verified on palette-dev (dev image digest ffc5ce80f496d, built from merge commit 269acf1): GET /zzzzzz99 returns HTTP 404 with rendered main UI and a friendly 'Paste ID not found' card (headless chromium dump-dom + screenshots at 1400x900 and 375x812, no CSP violations); normal paste create and view unaffected. Closing and deleting fix/173-paste-not-found.

QA passed. Verified on palette-dev (dev image digest ffc5ce80f496d, built from merge commit 269acf1): GET /zzzzzz99 returns HTTP 404 with rendered main UI and a friendly 'Paste ID not found' card (headless chromium dump-dom + screenshots at 1400x900 and 375x812, no CSP violations); normal paste create and view unaffected. Closing and deleting fix/173-paste-not-found.
Collaborator

QA passed on palette-dev (image sha256:8520c79... = CI dev build of merge commit 269acf1). /nonexistent-paste-xyz and /foo/bar/baz return HTTP 404 with the main UI and the 'Paste ID not found' card (topbar, lockring icon, message, 'Create a new paste' button); no bare '404 page not found' text; rendered DOM verified in headless chromium; no inline styles and no CSP violations in console. Valid paste create/view still works (API create 201, view 200 with content). go build and go test ./... pass locally incl. new TestPasteViewNotFoundFriendly.

QA passed on palette-dev (image sha256:8520c79... = CI dev build of merge commit 269acf1). /nonexistent-paste-xyz and /foo/bar/baz return HTTP 404 with the main UI and the 'Paste ID not found' card (topbar, lockring icon, message, 'Create a new paste' button); no bare '404 page not found' text; rendered DOM verified in headless chromium; no inline styles and no CSP violations in console. Valid paste create/view still works (API create 201, view 200 with content). go build and go test ./... pass locally incl. new TestPasteViewNotFoundFriendly.
fen added spent time 30 minutes 2026-09-10 16:19:41 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Total Time Spent: 1 hour 5 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poslop/palette#173