Skip to content

Fix DELETE application endpoint returning 404#115

Merged
JoshuaAFerguson merged 3 commits into
mainfrom
claude/fix-delete-application-404-015nHTtvo8PowJzM5DoVEEfz
Nov 19, 2025
Merged

Fix DELETE application endpoint returning 404#115
JoshuaAFerguson merged 3 commits into
mainfrom
claude/fix-delete-application-404-015nHTtvo8PowJzM5DoVEEfz

Conversation

@JoshuaAFerguson

Copy link
Copy Markdown
Member

No description provided.

The GetApplication query was failing with "invalid input syntax for
type json" when catalog_template_id was NULL. This occurred because
COALESCE(ct.manifest, '') tried to cast empty string to JSONB.

Changed to COALESCE(ct.manifest::text, '{}') which:
- Casts JSONB to text first
- Uses valid JSON '{}' as default instead of invalid ''

Fixes delete application 404 error.
Immediately removes the deleted application from state for instant
UI feedback, then refreshes from server to ensure consistency.
This prevents the delay caused by browser caching of GET requests.
Adds timestamp parameter to prevent browser HTTP caching of the
applications list endpoint, ensuring fresh data on page refresh.
@JoshuaAFerguson JoshuaAFerguson merged commit 0e9317e into main Nov 19, 2025
9 of 23 checks passed
@JoshuaAFerguson JoshuaAFerguson deleted the claude/fix-delete-application-404-015nHTtvo8PowJzM5DoVEEfz branch November 19, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants