Skip to content

#2 fix: 500 on task creation (Hibernate ENUM) + logout confirmation dialog - #3

Merged
snehil21 merged 1 commit into
mainfrom
#2-TaskFlow
Apr 12, 2026
Merged

snehil21 merged 1 commit into
mainfrom
#2-TaskFlow

Conversation

@snehil21

Copy link
Copy Markdown
Owner

Changes

Bug 1 — 500 error on POST /projects/:id/tasks

Root Cause:
Hibernate 6 (Spring Boot 3.2) sends Java enums as VARCHAR over JDBC, but the
status and priority columns are PostgreSQL native ENUM types (task_status,
task_priority). Postgres rejects the implicit cast.

Fix: Added @JdbcTypeCode(SqlTypes.NAMED_ENUM) on both enum fields in Task.java:

@JdbcTypeCode(SqlTypes.NAMED_ENUM)
@Enumerated(EnumType.STRING)
private TaskStatus status;

@JdbcTypeCode(SqlTypes.NAMED_ENUM)
@Enumerated(EnumType.STRING)
private TaskPriority priority;

Bug 2

Fix: Added a confirmation dialog in Navbar.tsx. The logout icon now opens the dialog — user must explicitly click Log out to proceed.

closes #2

@netlify

netlify Bot commented Apr 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for taskflow-frontend-app ready!

Name Link
🔨 Latest commit 3f01c71
🔍 Latest deploy log https://app.netlify.com/projects/taskflow-frontend-app/deploys/69dbf89e7b20060008d23017
😎 Deploy Preview https://deploy-preview-3--taskflow-frontend-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@snehil21
snehil21 merged commit 0725dc2 into main Apr 12, 2026
6 checks passed
@snehil21
snehil21 deleted the #2-TaskFlow branch April 12, 2026 19:57
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.

fix: 500 on task creation (Hibernate ENUM) + logout confirmation dialog

1 participant