Describe the bug
Description:
When using the API key authentication (x-api-key header), the DELETE endpoint for checklists always returns {"error":"List not found"} regardless of whether the checklist exists and belongs to the authenticated user.
Steps to reproduce:
- Create a new checklist via POST
/api/checklists (works fine)
- Verify the checklist exists via GET
/api/checklists (returns the checklist with valid UUID)
- Attempt to delete via DELETE
/api/checklists/{uuid} (fails with "List not found")
- Adding items to the checklist via POST
/api/checklists/{uuid}/items works fine
Expected behavior:
DELETE should remove the checklist or return appropriate error if user lacks permission.
Actual behavior:
DELETE /api/checklists/{uuid} returns {"error":"List not found"} even for freshly created checklists owned by the authenticated user.
Environment:
- Jotty version: 1.21.1 (docker self-hosted)
- Authentication: API key (
x-api-key header)
Notes:
- GET
/api/checklists works correctly
- POST
/api/checklists creates checklists successfully
- DELETE
/api/notes/{uuid} for notes works fine
- Only the checklists DELETE endpoint appears broken
Steps to Reproduce
Steps to reproduce:
- Create a new checklist via POST
/api/checklists (works fine)
- Verify the checklist exists via GET
/api/checklists (returns the checklist with valid UUID)
- Attempt to delete via DELETE
/api/checklists/{uuid} (fails with "List not found")
- Adding items to the checklist via POST
/api/checklists/{uuid}/items works fine
Expected behavior:
DELETE should remove the checklist or return appropriate error if user lacks permission.
How do you run Jotty?
Docker
Jotty Version
1.21.1
Checklist
Describe the bug
Description:
When using the API key authentication (
x-api-keyheader), the DELETE endpoint for checklists always returns{"error":"List not found"}regardless of whether the checklist exists and belongs to the authenticated user.Steps to reproduce:
/api/checklists(works fine)/api/checklists(returns the checklist with valid UUID)/api/checklists/{uuid}(fails with "List not found")/api/checklists/{uuid}/itemsworks fineExpected behavior:
DELETE should remove the checklist or return appropriate error if user lacks permission.
Actual behavior:
DELETE
/api/checklists/{uuid}returns{"error":"List not found"}even for freshly created checklists owned by the authenticated user.Environment:
x-api-keyheader)Notes:
/api/checklistsworks correctly/api/checklistscreates checklists successfully/api/notes/{uuid}for notes works fineSteps to Reproduce
Steps to reproduce:
/api/checklists(works fine)/api/checklists(returns the checklist with valid UUID)/api/checklists/{uuid}(fails with "List not found")/api/checklists/{uuid}/itemsworks fineExpected behavior:
DELETE should remove the checklist or return appropriate error if user lacks permission.
How do you run Jotty?
Docker
Jotty Version
1.21.1
Checklist