docs: BUG-008 (contacts empty body 201), BUG-009 (contact-folders id=None), BUG-010 (attachments 500 statt 404)
This commit is contained in:
+22
-8
@@ -105,11 +105,25 @@ Jeder Bug wird wie folgt dokumentiert:
|
||||
- **Lösung:** Contract-basierten Zugriff verwenden
|
||||
- **Status:** ⏳ Nicht gefixt — wird gesammelt nach Test-Abschluss gefixt
|
||||
|
||||
### BUG-007: Schema Drift Check kann nicht lokal laufen
|
||||
- **Kategorie:** Infrastructure
|
||||
- **Modul:** scripts/schema_drift_check.py
|
||||
- **Erwartet:** Skript läuft lokal mit Test-DB
|
||||
- **Tatsächlich:** `ModuleNotFoundError: No module named 'app'` ohne PYTHONPATH, dann `database "crm_db" does not exist` (lokale DB heißt `leocrm_test`)
|
||||
- **Schweregrad:** Low
|
||||
- **Ursache:** Skript erwartet `crm_db` Datenbank, lokal heißt sie `leocrm_test`
|
||||
- **Status:** ⏳ Nicht gefixt — Skript muss für lokale Test-DB angepasst werden
|
||||
### BUG-008: POST /contacts mit leerem Body erstellt Contact statt 422
|
||||
- **Kategorie:** API / Validierung
|
||||
- **Modul:** Contacts
|
||||
- **Endpoint:** POST /api/v1/contacts
|
||||
- **Erwartet:** 422 Unprocessable Entity (fehlende Pflichtfelder)
|
||||
- **Tatsächlich:** 201 Created — Contact mit leerem displayname wird erstellt
|
||||
- **Status Code:** 201
|
||||
- **Response:** `{"id":"...","type":"company","displayname":"","status":"lead",...}`
|
||||
- **Schweregrad:** Medium
|
||||
- **Ursache:** ContactCreate Schema hat keine required fields (type, displayname etc. sind optional)
|
||||
- **Status:** ⏳ Nicht gefixt
|
||||
|
||||
### BUG-010: GET /attachments mit nicht existierender entity_id gibt 500 statt 404
|
||||
- **Kategorie:** API / Error Handling
|
||||
- **Modul:** Attachments
|
||||
- **Endpoint:** GET /api/v1/attachments?entity_type=contact&entity_id=00000000-0000-0000-0000-000000000000
|
||||
- **Erwartet:** 404 Not Found (Entity existiert nicht)
|
||||
- **Tatsächlich:** 500 Internal Server Error
|
||||
- **Status Code:** 500
|
||||
- **Schweregrad:** Medium
|
||||
- **Ursache:** Route gibt 500 statt 404 wenn Entity nicht gefunden wird
|
||||
- **Status:** ⏳ Nicht gefixt
|
||||
|
||||
Reference in New Issue
Block a user