docs(notepads): record Option D interceptor debugging and learnings

This commit is contained in:
WorkClub Automation
2026-03-05 20:43:10 +01:00
parent c918f447b2
commit b286e5cb34
2 changed files with 271 additions and 0 deletions

View File

@@ -239,3 +239,20 @@ curl -s -X POST http://localhost:8080/realms/workclub/protocol/openid-connect/to
2. Document JWT claim requirements in API authentication specification
3. Add integration test: Verify all required JWT claims present before API token validation
## 2026-03-05: RESOLVED - Silent Write Failures Due to Uncommitted Transaction
**Issue:** All write operations (INSERT/UPDATE/DELETE) appeared to succeed but data never persisted to database.
**Symptoms:**
- HTTP 201 Created response with valid data
- GET by ID immediately after POST returns 404
- No error logs, no exceptions
- EF Core SaveChanges returns success
**Root Cause:** TenantDbConnectionInterceptor started transaction for SET LOCAL but never committed it.
**Fix:** Replaced transaction-based approach with command text prepending. See learnings.md 2026-03-05 entry.
**Status:** RESOLVED - All tests pass after fix.